javascript

Which mobile browsers support javascript (and Ajax)?

For the web site I'm building (targeted at mobile users) I'm thinking of using some Ajax controls. I'd like to know which mobile browsers do and don't support Javascript and Ajax, so I can know whether I've at least covered the majority of my target market (i.e. iPhone, Droid, Nokia, Opera). If not, I'll have to find an alternative way...

Google Maps JS API v2 - jQuery number to word translation thingy

Hi again guys! Ive got a problem, Im using jquery for my googlemaps thingy Im doin and Im gettin a number from an php array and I´m reading from it via a for-loop and want to translate that number into a word, for example I get the number 1 in the array and then I´d like to translate that number to the word "Core-router". And return t...

How do i Open a page in a dialog box using jQuery?

I need to open the login.aspx page in a dialog box when the user clicks the 'login' link. I've looked at jQuery UI Dialog, but it looks like it can't open whole pages from a given URL? Do you guys have any tips to what I can use? ...

Trying to toggle a panel whilst changing the icon to 'view more' and 'view less'

Hi guys, I've just started learning jQuery/javascript, so this might seem like a really basic question, but it's annoying me nevertheless. I have a panel of 6 <li>s, 3 of which are hidden until clicking on the 'view more' link at which point the panel toggles to reveal the other 3. The icon is changing from 'more' to 'less', but then n...

Getting javascript variable value with HTML Agility pack

Is it possible to get a javascript variable value with html agility pack? <script type="text/javascript"> var title = "Site title"; var articlesummary = "article summary."; </script> Is there any way that html agility pack would allow me to get the value of the variable title for example? ...

Firefox strange behaviour when working with javascript on an iframe

Hi, i've met a strange behaviour in Firefox with this simple script: <html> <head> <script type="text/javascript"> window.setTimeout(function(){ var ifr=document.createElement("iframe"); ifr.src="about:blank"; document.body.appendChild(ifr); va...

What's the easiest way to integrate a Javascript (ECMAscript) editor with debugging capability in my WPF application?

Hi, I'm developing a WPF user control (for a commercial application) that does Javascript (ECMAscript) editing with syntax highlighting and some sort of code evaluating. After some days of "heavy googling", thanks to AvalonEdit (SharpDevelop editor) I easily achieved the first requirement, and with Jint now I can somehow evaluate the edi...

Operator Overloading Javascript? (def.js)

Possible Duplicate: Javascript syntax I havent seen till now, what does it do really? Just saw http://github.com/tobeytailor/def.js today, and I don't understand how this works: def ("Ninja") << Person ({ init: function(name){ this._super(); }, kick: function(){ this.speak("I kick u!"); } }); ...

NimbleKit: call objective c method from javascript method...

hi... i am new in NimbleKit.I use the following code to call a objective c method from javascript using NimbleKit NKRegisterClass("MyObjectiveCClassName"); function removeCarouselView() { CallNKitAction("methodName?className=MyObjectiveCClassNam"); } removeCarouselView(); the method is as follows....

Ajax readystate 3 (Chrome / IE)

Hi Folks, I'm playing around with some comet and mxhr technologys. As it turns out, Chrome (5) does actually fire a readystate 3, but the responseText is always empty there. Until today I though only InternetExplorers (<8) would show that behavior. Am I wrong here? Can somebody confirm that Chrome does not fully support ajax readyst...

Google Maps API 3. Text selection in overlays.

How to make a text selection in my overlays? Now my overlays inactive for text selection and creates a zoom when i double-click in overlay. http://img121.imageshack.us/img121/9022/overlayph.png ...

jquery - jsonp overwrite callback get parameter

I'm writing a dynamic js that should send a request to an action, that is defined in the href attribute in a link. The link look like that: <a href="module/action?callback=MyCallback">show something</a> As you can see the link has a get param named callback. That is defined, because the request method should be as generic as possi...

Javascript: Where is the error IE is finding in this script?

IE continues to give me an error on the next-to-last line stating "Object required". I am not sure where the issue would be. Any advice? function showdiv() { document.getElementById("dialogue").style.display = ""; document.getElementById("screen").style.display = ""; document.getElementById("screen").style.width = getBrowserWidth(...

Geo Coordinates - Explanation required.

Some people use Geodata Length and Width terms, but I am always confused where the Geodata Length means Latitude or Longitude. Thankd for explaination in advance. ...

How to change the background image of a textarea

How can I change my textarea background image when I select a value from the select menu? <html> <head> <title> Your Title </title> <script> function kool() { `enter code here`abc.style.background="img1.bmp" } </script> </head> <body> <textarea name="abc"> 1) Make paper airplanes out of the exam. Aim them at the instructor's left no...

Remove first options from the select form

Is there a way to remove the first options from this script: http://javascript.internet.com/navigation/connected-comboxes.html I want to remove the [ Type ] and [ Style ] options from the list and display other options only... Can anyone please help? ...

best method of detecting mobile browsers with javascript/jquery?

For a site I'm working on I'm implementing image preloading with javascript however i most certainly do not want to call my preload_images() function if someone is on slow bandwidth. For my market the only people with slow bandwidth are those using mobile internet on a smartphone. What's the best approach for detecting these users so i...

Is it possible to read values from a JSON object stored in another javascript file?

I am working on a custom piece where I am dynamically building very specific tables and writing them out using javascript after an AJAX call. I am trying to avoid writing custom code for each of these tables by coming up with a standard layout where I customize the layout via values in a JSON object stored in my current javascript file....

How to ajax-submit a form textarea input from CKEditor ?

I am using CKEditor, jQuery and jQuery form plugin and I would like to submit contents of the CkEditor form via an Ajax query. Here is my code: <form id="article-form" name="article-form" method="post" action="/myproject/save"> <textarea name="bodyText" style="visibility: hidden; display: none;"></textarea> <script type="text/javas...

Multiple CKEDITOR instances with different config files in IE broken

I'm trying to place multiple CKEDITOR instances on the same page, each one loading a different config file. It works fine in FF, but in IE the config file from the last instance on the page is applied to all instances. Each instance has a unique base element name. I'm using the following code to add the instances, with the customConfig, ...