how to make a simple strpos() with jquery
how to make a simple strpos() with jquery e.g. to locate if page has anystring inside a element td class="SeparateColumn" if $("anystring") then do it ...
how to make a simple strpos() with jquery e.g. to locate if page has anystring inside a element td class="SeparateColumn" if $("anystring") then do it ...
I am using the scrollTo plugin to scroll to some headings. The problem it will only scroll upwards in small increments that is determined by the height of the browser window. It does not seem to recognise the id's I am using. Click here to view the page, you will need to scroll to the bottom of the page and select the item with two fing...
In order to duplicate an Array in Javascript, does anyone know (and maybe tested) if it's faster to use slice method: var dup_array = original_array.slice(); or doing a for loop: for(var i = 0, l = original_array.lenght; i < l; ++i) dup_array[i] = original_array[i]; UPDATE: (just to clarify myself) I know both ways do only a ...
If I open a window via mywin = window.open(...); Is there a way I can be notified when mywin has loaded? I mean the opener be notified? ...
Hello, I'm trying to use following function with my API.. It works but the background isn't masking. What's wrong? dialog: function(message) { this.OCache = $('<div class="modal">'+ message+'</div>').appendTo('body').overlay ({top: 0,mask:{color: '#000',loadSpeed:200,opacity:0.5},closeOnClick:true,load:true}); } and...
Hello, If I make a jquery AJAX request which is succesful I get back my JSON data. However, If I make a request and I get somthing other than a 200 response code back, I cannot get back the data in the Jquery call back. I need the data as it has a description about the data. success: function (data, tst, xhr) { $.log('XHR OK'); }, ...
In this code, the ident and data variables are correct in the callback, but I don't know how to pass in the right i for each loop iteration. I've tried reading up on functions and tried like 10 things, but alas, I must seek the wisdom of the stack. function callback() { $(ident).html( data.fields[i].value ); $(ident).fadeTo('sl...
hello there, ok so i have a script that when you click a link it dynamicly adds a form field is it possible to make it so when it is submitted it goes to "example.com?7" (7 because of 7 files) what i mean is if i click it 5 times and there are 5 file fields and i choose 5 files can i make the action link mysite.php?5 here is the script:...
I am successfully including a javascript resource by calling ScriptManager.RegisterClientScriptResource at the end of OnPreRender in my custom control. However, the resulting script tag is being included before the automatically included script tags that define things like Type and Sys which my script depends on. I thought they were de...
Hi there, I'm searching for a multiuser web-based calendar system that supports multiple users. I'm looking for these features: Multiple users Two user groups: First group is allowed to see events, the second group can create and edit events The events should be stored in a mysql database or a file The system has to be (very) easy to ...
Hi, I've searched high and low for some resolution to this problem. Hopefully someone here can explain!! I create a usercontrol that uses .NET web controls, but I want to create a smoother user experience by avoiding full postbacks, so I write some JQUERY to capture click events on the client and in this way do the processing without g...
I want to add some extra parameters to the Google geocoder API call as I'm running it in a loop, but am not sure how to append closure parameters to their anonymous function that already has default parameters that are passed in by the call to the API. For example: for(var i = 0; i < 5; i++) { geocoder.geocode({'address': address}...
Hello - I am having trouble getting this to work. I would like to trigger the second link. If anyone can help that would be much appreciated. $(".links").click(function () { alert($(this)); }) function someFunction(){ $(".links").trigger('click'); } someFunction(); ... <a href="1.html" cla...
Hi. I'm trying to use a jQuery plugin, the HighCharts, calling the series from a webservice but i don't know how to use the javascript javascript that i'm filling. I've created the object like this: chartOjb = new Object(); Then i create two properties:name and data. (i've already tested if i'm getting the values properly with alerts...
I want to reload window after a this custom function finishes: <script type="text/javascript"> $(document).ready(function(){ setTimeout(function () { $('#order_form').dolPopupHide({}); }, 3000); //window.location.reload(); }); </script> Is there a way I can add the reload to the setTimeout function so it doesn't ru...
So I have a bit of script at the bottom of my page //RETAINER CURRENT that is supposed to hide and show content based on what menu item the user selects in the maincontent area. Unfortunately in IE7 all layers are rendered which means the videos in each layer play simultaneous. I tried .detach, .remove, methods and had no luck and when I...
I'm building a custom pulldown menu in jQuery. Now I'd like to set the text of the A.select element to the text of the element that is clicked. But I can't get it to work. This is the html: <div class="pulldown"> <a href="javascript:;" class="select">All cats/subs</a> <div class="options"> <a href="javascript:;">Option one...
I have searched far and wide for a way to compile my .hta file (and resources) to a .exe file. There are plenty of applications that claim to be able to do this - but they have not worked for this application - which is a mixture of javascript and VB. Simply, (and naively,) I don't want people looking at / screwing with the code. Any s...
Having similar problem as others have had on this website where it shows only the last marker's info window info in all markers. Can't seem to solve this with any of the solutions given. Also, the last one of my markers doesn't show an info window at all. <script src="http://www.google.com/jsapi"></script> <script type="text/ja...
Probably, a simple question, which I can't seem to find a solid answer to. Why would one choose JSON2 over jquery-json plugin ( http://code.google.com/p/jquery-json/)? Given that a web application is using jQuery to begin with. Everyone's writing about how great it is that JSON2 falls back on the native implementation... Well, so doe...