javascript

Hide Toolbar on top of iPhone Keyboard

Hi, is there anyway in javascript or HTML to hide the toolbar from iPhone keyboard. I only have one form input and I don't want the user to see the next, previous or done. If anyone can help that would be great, I am using PhoneGap ...

Is it possible to see what twitter user clicked a link?

What if it it was a URL shortener that can track destination site profile? Can this be done without authentication? ...

Stop a form from being submitted unless specified amount of checkboxes are checked

Hi, I am creating a page that allows users access to a certain section of my website if they click 8 out of 25 checkboxes in the right sequence. First of all thanks to Reigel for the orignal code, he took what I had and rewrote it, its way better than what I initialy started with. Also thanks to Peter Ajtai for helping me optimize the c...

show hide content depending if a checkbox is checked

I'm pretty new to jquery so I'm proud of myself for what I've figured out so far. What I'm trying to do is show/hide a list of options depending on the approprate check box status. Eveything is working just fine but I can't figure out how to check to see if a check box is checked on load I know I should be able to use is.checked right no...

How can I make a JQuery UI slider and a textbox coexist on a mobile browser?

I'm trying to have a jQuery UI Slider on a webpage to be displayed on an Android phone. The slider does not work by default, but when JS code that converts touch events to mouse events is dropped in (http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/), the slider works. Only problem being, with the new code, if ther...

Keeping code from being exploited, Securing Javascript and Forms

Hi, I am creating a page that allows users access to a certain section of my website if they click 8 out of 25 checkboxes in the right sequence. First of all thanks to Reigel for the orignal code, he took what I had and rewrote it, its way better than what I initialy started with. Also thanks to Peter Ajtai for helping me optimize the c...

Regex to support not in order text

Hi I have problem need to solved with Regex If i am using Firefox or IE8 javascript will generate this code which is what I really want. <div style="visibility: hidden;" id="wizardId1">1001</div><div style="visibility: hidden;" id="wizardId2">1002</div> However with IE7 it will generate diferently to be <DIV id=wizardId1 style="VI...

Javascript slideshow not displaying the height of images

Hello Im using the following code on my website Contact Lenses Aus <p> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready(function() { slider = jQuery('#slider-content'); slider.before('<div id="stripNav0" class="stripNav">').cycle({ fx: 'scrollLeft', timeout: 6000, ...

creating a pure javascript based video player

Hi, can anyone tell me if we can create a video player purely in javascript? if yes then please suggest some guidelines and process like how will the buffering and streaming be achieved? using ajax in this case? is there any way to read local video files using javascript? etc. NOTE: I am not talking about HTML 5. Thanks ...

How to pass page or master page object to AJAX page method

I wrote a page Page method in my aspx page. in web service method I need to call FindControl method return textbox and get text box value. But my findControl will take MasterPage object to iterate. Please see my code <script type = "text/javascript"> function ShowCurrentDateTime() { $.ajax({ type: "POST", ...

When loading a page via javascript/XHR, hitting back causes unwanted scrolling

I am working on an existing website that we're adding some additional functionality to. A large number of users visit the site in the following manner: Page A -> Page B -> Page C -> back button to page B -> Page D -> back button to page B, scrolling -> Page C -> back button to page B, scrolling -> Page E, etc, etc. There is an alter...

Ok, I've got the bit.ly link, but now the asynchronicity of jQuery is getting in the way.

function dlLink(title, currentArray, currentIndex, currentOpts) { var img = new Image(); img.src = 'Gallery/Wallpapers/' + title; html = img.width + ' x ' + img.height + '<br />' + '<a class = "nav" href = "Gallery/Wallpapers/' + title + '" target = "_blank">Download</a><br />http://'; ...

how can i extract text after hash # in the href part from a tag?

hi guys, I have following a tags: <a href="#tab1">Any tab1 Label</a> <a href="#tab2">tab2 Label</a> <a href="#tab3">Any tab3 Label</a> <script> function tellMyName() { alert(this.href); } </script> Now i want to bind the tellMyName function to all the a tags and get tab1 if Any tab1 Label is clicked, tab2 if tab2 Label is clicke...

formating textfield input

I've a text field. I'm to type the email in it.. eg. [email protected] What I want is that, as soon as the user types the char "@", the remaining part of the string gets masked so that it appears to the user viewing as username@**** But in the backend, the real keys typed has to be captured somehow. Is there a way to do that using j...

Difference between value and defaultValue for a text input in Javascript?

What is the difference between value and defaultValue for text inputs in Javascript? And what are the implications of using one instead of the other? Are they free interchangeable? i.e., does changing one change the other? ...

how to make javascript popup unblocked in any browser without user interference?

I have used popup at many places in my website (its in PHP with Mysql DB and lots of javascript). These are mostly been blocked my browsers, which restricts user to move ahead. what should do in my code so that my popups becomes Popyp blocker independent.. ...

Treeview control in ASP .net

I have a treeview control in my web application. I build this tree view dynamically. Is there anyway to select a node and change the color of the selected node using javascript or any other method running in client side(i mean without post back). i am using c# and asp.net to bulid my application ...

Call parent javascript function from child frameset's javascript.

I am using frameset in my page. In the frameset i have taken two frames and in the first frame i have written some javascript code. How the javascript function of the frame will call the javascript function of the main page. Can anyone please help :) ...

How to use generators with IndexedDB?

Hi all :) I'm trying out IndexedDB, but I can't seem to make it work with generators, even though it was advised as one way to make IndexedDB easier to use. The following code works (not using generators): function loadItems (func_item) { var request = db.objectStore ("store").openCursor (); request.onsuccess = function (event) {...

Get relative position with extjs

What's the proper way to get the position of an element on the page relative to the document? offsety/x is the jquery variant: http://docs.jquery.com/CSS/offset I need the EXTJS variant please. Edit Possible problem. Because grid components are not part off the dom, the grid height is not taken into consideration. I think I need a c...