javascript

What's a good way to merge remote, standalone web apps into a virtual site?

We have a few dozen web apps on multiple servers/platforms owned by 5 teams at our company and want to merge them into a single site. The UI part is straightforward - a common header with login/status info, tabs for the major sections of the site, and yui menus for navigation within a section. The hard part is finding a way to do this w...

Play mp3 using JavaScript and swf

Is there a Flash MP3 player that would allow me to do following to pass URL to mp3 file and get it automatically played. To help out with answer - here is detailed code that describes what I would like to do: <object id="mp3PlayerSwf" type="application/x-shockwave-flash" data="mp3Player.swf"> <param name="movie" value="mp3Player.swf">...

Including style sheets for different browsers without JavaScript

I have a utility that scans through my css file and embeds images as base64 to reduce the amount of requests made to the server. Unfortunatly, IE does not support this. I know how to include IE specific style sheets using conditional comments, but what about FF, Opera and Webkit? I don't want to give IE style sheets that it doesn't use....

Move cursor in JavaScript

Is it possible to move the mouse so that it is positioned inside a text input using JavaScript? ...

How can I embed a webpage within another and isolate CSS

I need to embed one webpage within another, the inner page will be wrapped by a <div> and not contain the html,head title or stuff like that, however the inner page can contain <link>'s to css that I dont want to affect the outer page I currently fetch the html with ajax and insert it into the outer dom, to workaround the styles conflic...

Drop down price filter

Hello, I created a product matrix/selector using Jquery and its working fine overall except for the price filter which is also working but kinda separate to the selector. Basically, at the moment when a feature is selected from the list it will present the product and if one wanted to filter based on the price they would select from the...

safari displays javascript source instead of executing

i have a web application that has javscript interspersed through the page. What happens is that safari will dump the source of the javascript code instead of executing it. I can reproduce this consistently. The page is a mashup of different forms of content: it loads flash videos using osflv and is generated via a php script on the se...

trying to change string -> int

Hello. I'm trying to use javascript to change a string to an int. var intVal = gSpread1.Text * 1; I want intVal's Type to be int. I can get an int value, if gSpread1.Text is smaller than 1000. But if gSpread1.Text is larger than 1000, intVal returns NaN What is the correct way to use ParseInt to ensure that it always returns an in...

Calling functions from an ASP.NET code file with javascript.

I have a JavaScript-based timeline which needs to use data from an SQL server. The queries and the JSON conversions have been worked out in the form of C#.NET functions within a code file related to an .aspx page. So for a complete newbie to ASP.NET, how do you set up a function call like this from JavaScript? I would love it if some...

how to dynamically read RSS using jquery?

hello. i want to read multiple RSS feeds using jquery, i'm trying to write a flexible function that will just take the RSS URL and it will output only its TITLE AND IMAGE how to do that for multiple RSS URLs ? ...

How do I encode passwords in web forms without javascript?

It's not that I don't have access to javascript, of course. In most of my CS Web Development courses, we are taught a little bit about server-side validation, and then as soon as javascript is introduced, server-side validation is thrown out the window. I choose not to just rely on javascript, as the client-side is never a secure place....

In Mobile Browser, Can i use javascript to get the user input key's value?

Hi I want to get the user's input key value, if user click "confirm" key , I will direct the page to some othe page, now i don't know how to confir user click the "confirm" key. ...

Scrolling content

Does anyone know if there is a common javascript library to enable scrolling that many popular websites do for frequently updated content? For example : http://foursquare.com/ has a good example of what I am looking for, I thought I'd save myself the trouble if there is a common js library I cannot seem to query for correctly in google. ...

how to obtain browser url in javascript from an iframe

Hi, Whilst inside an iframe, can you please let me know how I can obtain main/parent window browser url using javascript? Thanks. ...

No root node detected when loading XML in IE using Javascript

I am attempting to parse a XML file using Javascript and I'm running into issues on IE7. If I have this code: function LoadXml() { var xmlPath = document.getElementById("hsTreeviewXmlPath").value; var xmlhttp=false; /*@cc_on @*/ /*@if (@_jscript_version >= 5) // JScript gives us Conditional compilation, we can cope...

Generating scriptaculous ajax.autocompleter on the fly

I have a form where the user can dynamically add a new table row with fields. I'm using a simple insertCell/InsertRow with innerHTML to generate the new row. One of those form fields is using scriptaculous' ajax.autocompleter. I have it generating new IDs for all the elements, but it is still not working The new row generated by js h...

Can js/jQuery determine the orientation of the iPhone?

Out of curiosity I've been playing with jQuery to determine the browser's screen size, and it occurred to me that screen size could be used to determine whether or not a visitor was using an iPhone/iTouch to view the site. So I used the following to test this: $(document).ready( function() { var screenX = screen.width, ...

Does back/forward in the browser change javascript variables?

<script type="text/javascript> var x = 0; //this occurs in the beginning of the page. $("#button").onclick{ x = 1; } </script> Let's say the variable "x" changes to 1. Then the user clicks a link. When the user clicks "back", will x be 0 or 1? ...

Making an onchange event also run to pageload

Hi Guys, I have some onchange events setup in jQuery which are used to populate a select dropdown boxbased on what is selected in another select dropdown. I need these to also run on page load that so that results are returned based on what the first select box is at on page load (otherwise i endup with an empty select box). Ive had ...

semi transparent div in a webpage

Hey am developing a website where i want to display a div with a semi transparent background so that the page background is visible. i want this to work on all browsers. am fine using CSS , JS or jquery... please give me suggestions and if possible some sample code.. Thanks in advance, Raj ...