How do I select string after a specific symbol in javascript/Jquery?
Let says I have a string that says and the cow went @moo, and I want to only select moo... how would I go about that? ...
Let says I have a string that says and the cow went @moo, and I want to only select moo... how would I go about that? ...
I have a mutliple drop down menus that I am using to hide/show rows in my table. Example: <select name="kp1_action" class="longboxsmall"> <option class="hidenextrow" value="">Button Disabled</option> <option class="showtransferoptions" value="transfercall">Transfer Call + Log Keypress to Reports</option> <option class="s...
Hi I have <td id="checkb1" class="checkba"> I want to get the value of the id when I click on $('.checkba').click(function() { var my_var = $('.checkba').attr('id'); alert(my_var); }); The alert shows checkba not the id, checkb1. Appreciate all assistance. Thanks Jean ...
Hi I am new to Jquery and wondered if I can give a an ID and if so how can I then get the value back . The best I have come up with so for is rid = $('tr').attr('id').val() but no luck ...... thanks ...
Given a child element, is there a simple means of determining how many parent tags separate it from a given selector? Something like .closest(selector) which returns the number of parent() calls required to reach any element selected by the the given selector. An (untested) implementation of what I'm looking for: $.fn.distance = funct...
Hello everyone. I am using the simple Google API to display search results. I would like to get the href value of a link on mouseover or click. It is really not important what flavor of javascript is used, I just need to get the user selected href value of the rendered search. (I need this as I have a webservice that allows users to sav...
I have a jgrid and on selectiing and submitting the row I have to submit the for data with that url which contains two date field... How can I bind the values of form and selected row together on submit to server? Nay help will be appreciated.. Thanks! Update 1: jQuery(".sorder").click(function() { var earliestDate = jQuery("...
Hello, I have a main screen with 2 parts a list and a detail section. Via a button, I open a modal dialog. On this modal dialog, 2 buttons one for save and the other for cancel. After the save, I call a function to refresh the list on the main screen and close the dialog. The problem, sometimes, the list is refresh before the end of the...
Hello: I am opening a dialog box with a pretty large amount of data structured as an html table (about 1400, 3 columned rows). Needless to say, it loads unacceptably slow. Any ideas on speeding something like this up? ...
I am having a trouble invoking a Jquery dialog box on a 'parent' page. I'm calling the dialog 'open' from a dynamically loaded page within an iFrame on the 'parent' page. The showDialog button is on that dynamic IFrame form. I'm using #divId as the placeholder div, and #modalIframeId1 is where the dynamic form gets loaded via src='Add...
Hi, I'm trying to access the API at http://boo-box.com/api/format:json/aff:mercadolivreid/uid:173091/tags:my-query/jsonp:callback. It works fine if I try to wget it, or from my browser. But if I try to do: function getProducts() { var query = encodeURIComponent(document.getElementById('query_input').value); url = 'http://boo-box.c...
The problem is in the difference how browsers implement simple calls. The problem occurs while using colorbox extenstion (facebox variant). Content is loaded into colorbox with jquery load() function. When the call is made by Chrome, Accept header is set to: Accept: text/html, */*, text/javascript In case of FireFox, header looks lik...
I have trouble wrapping my head around a peculiar feature of the JSON data format. The situation is as follows: I have a string containing a Windows (sigh) directory path, backslashes escaped. For some reason, the jQuery JSON parser thinks that a single escape is not enough. <script type="text/javascript" src="http://ajax.googleapis.co...
When I load a form into a Jquery UI dialog, if the form is longer than the existing page, the background does not continue down the full length of the page. If I use the resizer to shrink the dialog and then stretch it back again then the background stretches with it. Just wondering if there is some kind of function I can call to r...
platform: ASP.NET 3.5 / C# My requirement is this: I want to create a rather large array on the server side (in C#) and pass it to the browser via Page.ClientScript.RegisterArrayDeclaration("gBank", js); My array is a 2-dimension array, and I am constructing it right to pass it to the client. Simple cases work fine. My problem is ...
Hi I have the following code in a form . When the user clicks a button I want to get the current row in order to identify which of the buttons was clicked <tr id="TEST1" > <td align="left" valign="middle"><div align="right">Contact</div></td> <td colspan="4" align="left" valign="middle"> ...
If you have 17 records and are displaying 15 at a time then when you're on page 2 you see records 16-17 of 17 - makes sense. Now when you're on this second page and you hit the reload button on the nav (set datatype='json') when the grid reloads the nav is showing that the grid is displaying 16-30 of 17. This seems to be a bug - is the...
I have a bizarre problem that recently surfaced. I have some megamenus -- they are coded very simply as unordered lists and use jQuery. There are coded up very much like this SitePoint tutorial found here. Here's my jquery $j('li>a[topnav], li>div[topnav]').hoverIntent({ sensitivity: 4, interval: 100, over: ShowMenus, t...
Hi, whats the simplest way to return the "pathname" from an anchor tags href attribute? example... say I have: <a href="http://www.example.com/this/is/my/path.html">Blah</a> I need to return only this "/this/is/my/path.html" part. Ideas? I'm using jQuery if it helps.. Thanks! ...
I have a problem using Jquery. I do this: $("#ID_ESTADO").change(function() { document.getElementById("inprogress").style.visibility = "visible"; document.getElementById("ID_CERTIFICADO").setAttribute("disabled", true); var url = '<%= Url.Content("~/") %>' + 'Certificado/ObtenerCertificados/'; $.getJSON(url + $(...