javascript

Raphael minify version doesn't work on IE. Any idea?

Hello, I've an issue with the fantastic RaphaelJs lib. It doesn't work on IE (8 and 7) if I use the minify version. It works of with the dev version. An error is raised on paper = Raphael("canvas", 100, 100); Any idea what can be wrong? Thanks in advance ...

C# or javascript code formatter

I'm currently using Syntax Highlighter to show a XML or SOAP messages on a page. That works fine for messages that are already formatted correctly (line breaks, indents, etc). But if I had a XML string like: string xml = "<doc><object><first>Joe</first><last>Smith</last></object></doc>"; I would write the string to the page and the ...

Creating object in RaphaelJS

Is it possible to create Raphael's object but not drawing it on paper? In example, i want to create circle, do some actions and show it on callback of actions. ...

Displaying content input in browser address bar?

I don't know if I'll be able to describe this correctly, so please bear with me! Is it possible to get the browser to display html from the address bar? ie. there would be no actual html page it would load, but it would instead display whatever was inside the address bar? Might this be something for javascript or is that not possible...

Optimizing for Internet Explorer

Hi, Being a web developer I have noticed that anything I create works absolutely great in all browsers, but always always always has a speed issue in Internet Explorer. Please note I am referring to speed, as I always take care that it displays and works across all browsers. Is there anywhere, or does anyone have, good programming tip...

ExtJS TreePanel RESTful support

How I can modify that example http://www.extjs.com/deploy/dev/examples/tree/reorder.html for RESTful support? When we click on some node, it sends POST as "node=src/dd", but it doesn't work for RESTful. It should be for example as "node/src_dd", and GET will be nice. I found that ExtJS support RESTful for Store. http://www.extjs.com/de...

Waiting for image to load in Javascript

I'm making an Ajax call which returns me some info including an image path. I prepare all those informations in my HTML which will be displayed as a kind of popup. I just toggle the visibility of by popup div from hidden to visible. To set the position of my popup div, I have to calculate depending on the height of the image. So, I have...

Does it make sense for software developer to use jQuery when learning Javascript?

It's often claimed that learning a lower-level language is a good foundation for any new developer. What about an experienced developer (say a C++ or Java guy) learning Javascript? in the same way should he learn using the raw language so he understands what's going on, and learn JQuery later, or use JQuery from the start as 'part of' Ja...

Escaping quotes-are there other characters that can be used?

I understand escaping quotes etc. for javascript. Are there any other characters that can be used to encase the whole thing rather than just " or '? Both characters will come up in my piece of text and I don't want to have to put a / before each instance So, instead of: ("Some text where he said "I like this, she say's") something ...

xmlhttprequest to spoof referer then redirect to another page?

Hello, I've created some code using curl (PHP) which allows me to spoof the referrer or blank the referer then direct the user to another page with an spoofed referrer. However the drawback to this is the IP address in the headers will always be the IP of my server, which isn't a valid solution. The question; Is it possible using cl...

Table to autorefresh on "check"

I've been reading and trying to figure out a way for half a day yesterday, and any solutions seems to fit to this. Overview: My solution is building up xml files from different folders on another server. After the xml is built up, I can run a "File Mapping" which will grab the appropriate information from the a specific xml selected wi...

Dynamically creating a new javascript class from an existing object.

Say I have the following code: var album = new MyObject('album'); Assume that when the object is constructed, a bunch of properties relative to only albums are loaded via AJAX. Would it be possible to create an Album class so that at a later point, I may just do this: var anotherAlbum = new Album(); The Album constructor would auto...

I want to load multiple images very fast on a website, what's the best method?

So.. my idea is to load a full manga/comics at once, with a progress bar included, and make sort of a stream, like: My page loads the basic (HTML+CSS+JS) (of course) As done, I start loading the imgs(the URLs are stored on JS var) from my server, one a time (or some faster way) so I can make a sort of progress bar. ALTERNATIVE: Is ther...

Javascript: date depending on the field specification order? Really??

Why on earth does this code: var a = new Date(); var b = new Date(); a.setDate(31); a.setMonth(11); a.setFullYear(2009); b.setFullYear(2009); b.setMonth(11); b.setDate(31); ouputs correctly 31 december 2009 for b and 3 december 2009 :-O for a? Not in browser MyHorribleScrap version 6.6.6 but BOTH on...

Looking for best CMS for MySQL Document based project, with CSS, PHP and Javascript

New project, to transfer existing Windows App to Web, Document based database with Report query and generator. What CMS sytem would be best? ...

Referring URL with Multiple IDs?

This is an update, since Gaby was able to help me with my issue. This now works DEMO TIME! http://media.apus.edu/it/ref/page1.htm In a nutshell - this code will send the referring URL from page 1 to page 3 dynamically when you click the link. Why is this important? We're not able to place analytical code (google analytics) on page 3 s...

Is there a library for a Set data type in Javascript?

Since Javascript doesn't have a built in set datatype has anyone come across a decent library for sets and set operations like union, intersection, etc? ...

What is the cleanest way to design form processing to support AJAX-capable browsers and non-AJAX browsers?

I'm using PHP, and am wondering what the best way is to handle simple POSTs and AJAX POSTs without repeating code in the simplest way possible. Thanks! ...

When does the browser execute Javascript? How does the execution cursor move?

I was wondering if there are any available resources that describe how a browser's cursor executes Javascript. I know it loads and executes tags when a page loads, and that you can attach functions to various window events, but where things get fuzzy is when, for instance, I retrieve a remote page via AJAX and put its contents into a d...

Need help with CAML from JavaScript to retreive all items from a SharePoint Message Board

I am using JavaScript to invoke the GetListItems method of the SP webservice and handing in the following CAML: var CAML = "<Query>" + "<ViewAttributes Scope=\"Recursive\" />" + "<Where>" + "<Or>" + "<Eq>" + "<FieldRef Name=\"ID\"/>" + "<Value Type=\"Counter\">"...