Search Results

Search found 28881 results on 1156 pages for 'javascript is future'.

Page 49/1156 | < Previous Page | 45 46 47 48 49 50 51 52 53 54 55 56  | Next Page >

  • Embedding Flash & Quicktime Via JavaScript

    - by thesunneversets
    I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF(). I want to be able to, alternatively, load a .mov file into the same div, in the event that this is the file found instead of the .swf. Is there a close equivalent to swfobject.embedSWF for the purposes of embedding a .mov file? If not, what is an efficient route to doing this using JavaScript?

    Read the article

  • javascript add rel facebox

    - by ruru
    Hi all,i want to enable facebox jquery using javascript. here in normal html <a href="stairs.jpg" rel="facebox">text</a> how do in javascript ?something like this? document.location.href="stairs.jpg"; document.location.rel="facebox";

    Read the article

  • Connecting C++ backend to Javascript

    - by baseballtank13
    I was hoping to make a website that displays a google map with points based of information returned by a C++ function. I know you can use Java Server Pages to call java methods on the server with javascript. Would there be a way to connect C++ code on the server with javascript in order to produce the same result as java server pages?

    Read the article

  • Javascript: how to access anonymous object within object?

    - by Caballero
    I have a string generated by php's json_encode() that looks like this: [ { "key1":"value1", "key2":"value2", "key3":"value3" }, { "key1":"value1", "key2":"value2", "key3":"value3" } ] I use Javascript function to convert the string to Javascript object: var jsonObj=JSON.parse(string); How do I access the data inside since the inner objects have no names? I tried something like: alert(jsonObj.firstChild.key1); It gives me "undefined". Why is that so?

    Read the article

  • how to detect javascript features on Android 1.5

    - by Sirber
    I'm trying to write a code that can run on Android 1.5 and 2.0.1, but I have issues with the javascript engine used on Android 1.5. alert(localStorage); just hang on v1.5 while on v2.0.1 it alerts correctly. is there an unblocking way to do it or to detect the version of Android with javascript?

    Read the article

  • SEO friendly javascript and CSS links?

    - by Sattvic
    Is it possible to have a navigation system optimized using javascript, but for the sake of search engines, have the hyperlinks still be crawlable? Or maybe a condition statement that calls HTML code only if javascript is not enabled in the browser or when crawled by a search engine?

    Read the article

  • Executing JavaScript with Python without X.

    - by Thomas
    I want to parse a html-page that unfortunately requires JavaScript to show any content. In order to do so I use a small python-script that pulls the html-code of the page, but after that I have to execute the JavaScript in a DOM-context which seems pretty hard. To make it even harder I want to use it in a server environment that has no X11-server. Note: I already read about http://code.google.com/p/pywebkitgtk/ but it seems to need a X-server.

    Read the article

  • Site monitoring tool to look for javascript errors

    - by Agile Noob
    I am currently working on a site that includes javascript code that we get from several different sources and need to run on the site I maintain. Every once and a while some of this code breaks without our knowing until its too late. Is there a monitoring tool that will crawl our site and look for javascript errors and report them or could this be incorporated into a selenium test somehow?

    Read the article

  • Variable name as a string in Javascript

    - by fish potato
    Is there a way to get a variable name as a string in Javascript? (like NSStringFromSelector in Cocoa) I would like to do like this: var myFirstName = 'John'; alert(variablesName(myFirstName) + ":" + myFirstName); --> myFirstName:John -- added I'm trying to connect a browser and another program using JavaScript. I would like to send instance names from a browser to another program for callback method.

    Read the article

  • Javascript keep running even when you refresh the page

    - by Shanison
    Hi all, Have anyone of you experienced that a javascript in a page keep running even after you refresh the page? As far as I know, javascript is single threaded, and it shouldn't keep running if I refresh the page. For you info, I was implementing comet for a website. The previous request for lpoll keeping posting to server even after I refresh the page.

    Read the article

  • Javascript plugins design pattern like jQuery

    - by Marco Demaio
    Could someone write down a very simple basic example in javascript to conceptualize (and hopefully make me understand) how the jQuery plugin design pattern is done and how it works? I'm not interested in how creating plugin for jQuery (so no jQuery code here at all). I'm interested in a simple explanation (maybe with a bit of Javascript code) to explain how it is done the plugin concept. Plz do not reply me to go and read jQuery code, I tried, but I it's too complex, otherwise I would have not post a question here.

    Read the article

  • Serialize JavaScript's navigator object

    - by kappa
    Hi, I'm creating a page to help diagnose the problem our users are experiencing with our web pages (you know, asking a user "What browser are you using?" usually leads to "Internet"). This page already submits to me all the HTTP headers and now I'm trying to have JavaScript give some more informations, so I thought it would be great to have the user's navigator JavaScript object and I started looking how to serialize it so I can submit it through a form. The problem is I'm not able to serialize the navigator object using any JSON library I know of, everyone returns an empty object (?!), so I decided to write an ad-hoc serializer. You can find the code here: <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> function serialize (object) { var type = typeof object; if (object === null) { return '"nullValue"'; } if (type == 'string' || type === 'number' || type === 'boolean') { return '"' + object + '"'; } else if (type === 'function') { return '"functionValue"'; } else if (type === 'object') { var output = '{'; for (var item in object) { if (item !== 'enabledPlugin') { output += '"' + item + '":' + serialize(object[item]) + ','; } } return output.replace(/\,$/, '') + '}'; } else if (type === 'undefined') { return '"undefinedError"'; } else { return '"unknownTypeError"'; } }; $(document).ready(function () { $('#navigator').text(serialize(navigator)); }); </script> <style type="text/css"> #navigator { font-family: monospaced; } </style> <title>Serialize</title> </head> <body> <h1>Serialize</h1> <p id="navigator"></p> </body> </html> This code seems to work perfectly in Firefox, Opera, Chrome and Safari but (obviously) doesn't work in Internet Explorer (at least version 8.0), it complains that "Property or method not supported by the object" at line for (var item in object) {. Do you have any hint on how to fix the code or how to reach the goal (serialize the navigator object) by other means?

    Read the article

  • how to access database through javascript?

    - by nectar
    I am creating one admin page where I have multiple textboxes.when I enter the userid in one textbox I want to display user name in next textbox when admin moves to next text box.for this I can use ajax or javascript? which one will be better?how can I do it through javascript.

    Read the article

  • call JavaScript function within Google Maps Listener

    - by Queueball
    Ok, simple question but is it possible to call an external javascript function within a google maps listener? GEvent.addListener(map,"click", function(overlay, latlng) { testfunction(latlng); }); testfunction doesn't run, so is there a particular way i need to go about this? I'm new to google maps and javascript.

    Read the article

< Previous Page | 45 46 47 48 49 50 51 52 53 54 55 56  | Next Page >