select top level nodetext is not supported with jQuery?
Whenever I needed the top level text node I must write this long story? $("#hello").clone().children().remove().end().text(); Why is there no native function to support it ? ...
Whenever I needed the top level text node I must write this long story? $("#hello").clone().children().remove().end().text(); Why is there no native function to support it ? ...
I want to hit enter key to go to p2.htm or p3.htm according to the input text that I was typing in. And I also want to hit submit1 button to alert('no1') manually. It works in FireFox, but in IE6, when I hit enter key it will submit the submit button. How can I make the thing right in IE 6 as it is in FireFox? I use javascript and j...
var string = 'abcd+1'; var pattern = 'd+1' var reg = new RegExp(pattern,''); alert(string.search(reg)); I found out last night that if you try and find a plus sign in a string of text with a javascript regular expression, it fails. It will not find that pattern, even though to me it looks pretty clear that is exists. This has to be b...
Like others before me I'm struggling with scope in Javascript. (That and trying to read the darn stuff). I have checked some of the previous threads on this question but I cant seem to get them to apply correctly to my issuue. In the example below, I want to manipulate the values in the tagsArr array, once the array has been fully popula...
I'm using javascript to include some content served up from a php file on another server. However, this other service can sometimes get flaky and either take a long time to load or will not load at all. Is there a way in JS to try to get the external data for x number of seconds before failing and displaying a "please try again" messag...
First Post. So I am working on a project due to some drawbacks to the abilities of a standard PAC file. Basically we need to route proxy rules based on the internal subnet of the requester. Currently the IsInNet function is the option, however this is client side and has many failpoints due to it's dependency on the myIpAddress functi...
Hi, I've been working a lot with dates and various capacities for the past month. I can't seem to find any decent documentation on working with dates in javascript. for example: PHPfreaks has a wonderful explanation of any and all date() functions. I just want to make sure I am properly utilizing all of the date object's methods. W3...
I'm working on a module and am trying to add some javascript to the next page a user sees after logging in or out. Calling drupal_add_js() on hook_user (op == login) doesn't seem to work; I'm assuming this is because drupal_goto is called after the login is completed and a fresh page request is initiated. I've considered using hook_use...
I have used this dojo plugin that provides a wonderful implementation of declarative AOP. Does anybody know of a similar plugin/library for ExtJS or for vanilla JS? ...
Has anyone here used KSS? KSS is an AJAX framework. KSS has both a client-side Javascript library and server-side support. The client-side Javascript library needs to be included in your page. It fetches Kinetic style sheets from the server, parses them and binds a set of action to browser events and/or page elements. It is...
I have a site that I used making CSS,HTML,javascript,Jquery,and PHP. I have made it work on all known browers (IE,FireFox,Safari,ETC...) All of a sudden chrome came out and I looked and my site is jacked. I know this is not a very detailed question but I am just looking for a little guidance for any resources,tips,suggestions on how to...
Hello, I've created a gridview dynamically, now i want to fire an event when the selectedindex has changed. GridView NewDg = new GridView(); NewDg.ID = "SubGridView" + e.Row.RowIndex.ToString(); NewDg.DataKeyNames = new string[]{"logentry_id"}; NewDg.SelectedIndexChanged += new EventHandler(NewDg_SelectedIndexChanged); NewDg.RowDa...
How to add a comment node before the root <svg> element but after the xml prolog? Or will it be less resource expensive to insert the comment with a regexp on the serialized DOM? ...
Hi, I'm creating an application in SproutCore, which I want to integrate with Facebook. To do this, I need to create a file called xd_receiver.htm at / (see http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel ). But how can I do this (so it's available at /xd_receiver.htm)? I'm using sc-server. Thanks. ...
Hi guys, I've been playing around with jqGrid but cant work out how to implement the search functionality. Ideally I'd like to use the 'Advanced Search' - I imagine that when the user submits the advanced search form, the entered data is fired to the url specificed under 'editurl'? Im guessing this URL then outputs the resultset filte...
I have a fairly simple page that displays an image in a pop-up window. The onLoad event simply takes the querystring, populates an image tag with that value, then resizes the image and window to match. For some reason, this only works for me when the page is reloaded/refreshed. Or, once the image has been displayed once, it will work ...
I am trying to run a routine that (when a button is clicked) changes an asp:label's text to "Please Wait..." using Javascript, and then goes away and runs a c# function that changes the asp:label's text to "Finished" when it is complete. I can get the Javascript to work: <asp:Button ID="Button1" runat="server" Text="Upload" ...
I've got a checkbox that's set up as below: <asp:CheckBox ID="myCheckbox" runat="Server" OnClick="showLoadingScreen(this.checked);" AutoPostBack="true" Text="Check me for more data!" /> The function showLoadingScreen is as below: function showLoadingScreen(isChecked) { if (isChecked) { document.getElementById('f...
I'm working on an application that allows the user to send a file using a form (a POST request), and that executes a series of GET requests while that file is being uploaded to gather information about the state of the upload. It works fine in IE and Firefox, but not so much in Chrome and Safari. The problem is that even though send() ...
Ok, lets say I have page.php. If i'm currently viewing page.php and I click this link: <a href="#?call=friend.request&user_id=10&width=420&height=250">Link</a> The javascript box will pop up. Success! However, if I'm on a different page, and I link to <a href="http://domain.com/page.php#?call=friend.request&amp;user...