Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1040121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:11:05+00:00 2026-05-16T15:11:05+00:00

I need to check the value of a particular variable alone from set of

  • 0

I need to check the value of a particular variable alone from set of variables using JQuery…..

This is my code

 return "{" + string.Format("IsPreviewed:'{0}',PreviewdUrl:'{1}',IsFreeVideo:'{2}'",
                             parameters[12],pranu,jithu) +"}";

The value will be returned to a function in a .Js file for ex: uploader.Js where i will store all these values in a variable.

From this variable i need to check whether the pranu variable contains a value like http://www.google.com ,jithu variable has a boolean value either true or false using JQuery

Can any one provide some ideas or sample coding to help me solve this task……

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:11:06+00:00Added an answer on May 16, 2026 at 3:11 pm

    So, if I’ve understood correctly you just want to pull out the pranu variable from the string?

    var foo = "IsPreviewed:'1',PreviewdUrl:'www.google.co.uk',IsFreeVideo:'y'";
    
    var variable = "PreviewdUrl";
    
    // Get the start of the string, add 2 to gnore the preceeding :'
    var startIndex = foo.indexOf(variable) + variable.length + 2; 
    var endIndex = foo.indexOf(",", startIndex) - 1; // Remove the end '
    
    alert(foo.substring(startIndex, endIndex));
    

    Here’s a working example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to locate a particular project by a custom field value. So
In Codeigniter I want to know the best practice for using the same views
I am trying to get the selected dropdown value and perform a slideDown on
What I need seems simple, but I haven't been able to pull it off
First, some basic details: I'm using Visual Studio 2008 Team Edition I'm using C#
I have been learning Objective-C as my first language and understand Classes, Objects, instances,
I have a MySQL database in which I have to update a certain field
I'm returning data via JSON and attempting to loop through the JSON dataset to
I am making extensive use of stl vectors to manage memory (de-) allocation of
So I'm trying to figure out how to correctly override GetHashCode() in VB for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.