Search Results

Showing results 1 to 40 of 168
Search took 0.02 seconds.
Search: Posts Made By: digital-ether ; Forum: JavaScript / DHTML / AJAX and child forums
Forum: JavaScript / DHTML / AJAX Sep 30th, 2009
Replies: 12
Views: 907
Posted By digital-ether
Forum: JavaScript / DHTML / AJAX Sep 30th, 2009
Replies: 12
Views: 907
Posted By digital-ether
The new window must be interpreted as HTML. If you name the page with a php extension (.php) then the server should interpret it as HTML, and execute the JavaScript.

However, you can also send...
Forum: JavaScript / DHTML / AJAX Sep 29th, 2009
Replies: 1
Views: 275
Posted By digital-ether
Usually, if it is a regular download, then the filename is in the Content-Disposition header.

However, it really depends on how you structure your HTTP Response. You can easily send the filename...
Forum: JavaScript / DHTML / AJAX Sep 25th, 2009
Replies: 12
Views: 907
Posted By digital-ether
Something that might interest you is that before you could do XMLHttpRequest, the basis of AJAX, you could create Iframes programmatically with client side scripting.

Back then it was called...
Forum: JavaScript / DHTML / AJAX Sep 25th, 2009
Replies: 12
Views: 907
Posted By digital-ether
The Form has to be submitted by the browser, instead of programmatically via JavaScript, in order to send the file contents.

The Iframe does not belong to the same document. So the browser can...
Forum: JavaScript / DHTML / AJAX Sep 22nd, 2009
Replies: 3
Views: 2,157
Posted By digital-ether
It is a good exercise.
Forum: JavaScript / DHTML / AJAX Sep 21st, 2009
Replies: 3
Views: 2,157
Posted By digital-ether
Something not really used in JS is the second parameter of parseInt().

You can use it to convert between bases:

eg:

// binary to decimal
parseInt('101', 2); // 5

So converting between...
Forum: JavaScript / DHTML / AJAX Sep 21st, 2009
Replies: 5
Views: 2,665
Posted By digital-ether
Something like this should work:

/**
* Return html numeric entities encoded string
*/
String.prototype.toHtmlEntities = function() {
return this.replace(/[^a-z0-9\.\-\_\s\t]/ig, function(c)...
Forum: JavaScript / DHTML / AJAX Sep 18th, 2009
Replies: 1
Views: 518
Posted By digital-ether
You can create or display and HTML Element, that has the message.

Example of creating one:

var msg = documement.createElement('div');
msg.innerHTML = 'Your message';

Then attach that div...
Forum: JavaScript / DHTML / AJAX Sep 18th, 2009
Replies: 12
Views: 907
Posted By digital-ether
BTW: in the parent, you'll have defined the function: uploadDone()

eg:

function uploadDone(status) {

if (status) alert('upload complete');
else alert('upload error');

}
Forum: JavaScript / DHTML / AJAX Sep 18th, 2009
Replies: 12
Views: 907
Posted By digital-ether
Yes, unfortunatley you can't use XMLHttpRequest to upload a file fro the users computer.

The reason is that JavaScript does not have access to the file contents. It only has access to the file...
Forum: JavaScript / DHTML / AJAX May 29th, 2009
Replies: 5
Views: 749
Posted By digital-ether
Mozilla is working on getting location into the browser:
http://labs.mozilla.com/2008/10/introducing-geode/

You'll need a service that does the location guessing for you at the moment.

Loki...
Forum: JavaScript / DHTML / AJAX Mar 26th, 2009
Replies: 6
Views: 1,153
Posted By digital-ether
You're welcome. :)
Forum: JavaScript / DHTML / AJAX Mar 25th, 2009
Replies: 6
Views: 1,153
Posted By digital-ether
newDiv.innerHTML = '<input type="file" name="' + divIDName + '" size="57"> <a href="#" onclick="removeAdditionalFile(this.parentNode, this.count)">Remove</a>';

this.count would refer to the...
Forum: JavaScript / DHTML / AJAX Mar 24th, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
Glad you got it solved - too bad it wasn't exactly how you wanted.
Forum: JavaScript / DHTML / AJAX Mar 23rd, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
There is a good example on the page I linked.

All you need to do is take the response from the HTTP Request (AJAX Call) and use eval to turn that string into an actual JavaScript Object.

...
Forum: JavaScript / DHTML / AJAX Mar 22nd, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
You can execute JS by using eval(). If the JavaScript is specifically JSON, then you can use JSON library.
http://www.json.org/js.html
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
Its actually displaying, but breaks the layout. The images come outside of the main box. So I think you may just have a CSS problem.

btw: You sent me the link to index.php which you mention:

...
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
Do you get any JS errors?

Firefox has a great extension called Firebug. It has good JS debugging. Safari and Chrome also have similar debuggers/consoles.

Changing the url you have the AJAX...
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 11
Views: 1,745
Posted By digital-ether
A change it the URL path won't affect "AJAX". Only a domain change, such as a subdomain.

So it must be something else in your code.
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 6
Views: 1,153
Posted By digital-ether
If you're trying to remove the last element in the array, use Array.pop() instead.
https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Array

However, your splice looks...
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 1
Views: 920
Posted By digital-ether
If you're using Firefox, download Firebug. It will give you the error. Safari and Chrome also have a JS debugger/console built in.
Forum: JavaScript / DHTML / AJAX Mar 21st, 2009
Replies: 5
Views: 1,034
Posted By digital-ether
Take a look at the window.location object:
https://developer.mozilla.org/en/DOM/window.location
Forum: JavaScript / DHTML / AJAX Mar 19th, 2009
Replies: 5
Views: 1,294
Posted By digital-ether
I'm sure it would be relative to the canvas object. Wouldn't make any sense otherwise.

I'm not too familiar with canvas. I think I read somewhere that it isn't possbile to edit/manipulate...
Forum: JavaScript / DHTML / AJAX Mar 18th, 2009
Replies: 5
Views: 1,294
Posted By digital-ether
Is it possible to redraw the canvas on however, or is that too slow?
Forum: JavaScript / DHTML / AJAX Dec 8th, 2008
Replies: 1
Views: 650
Posted By digital-ether
see:

/**
* Parse strings into XML Object
* http://onwebdevelopment.blogspot.com/2008/05/converting-xml-to-json.html
* @param {String} XML String
*/
textToXML: function(strXML) {...
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008
Replies: 1
Views: 1,800
Posted By digital-ether
You'll need to know a bit of JavaScript.

Basically, on each type of a few characters into the search input, you send the search to the server, and load the results.

eg: HTML

<input...
Forum: JavaScript / DHTML / AJAX Aug 21st, 2008
Replies: 5
Views: 2,773
Posted By digital-ether
I've looked into this a bit. There is a similar exploit mentioned on Linux.com:
http://www.linux.com/feature/118166

However, this works on a bug in Firefox which makes it populate the user and...
Forum: JavaScript / DHTML / AJAX Aug 20th, 2008
Replies: 5
Views: 2,773
Posted By digital-ether
I've noticed this before but your post got me thinking about XSS and I just realized that it can be carried out even if you are not logged into a website.

The common misconception is that you...
Forum: JavaScript / DHTML / AJAX Aug 8th, 2008
Replies: 14
Views: 4,482
Posted By digital-ether
I can't see anything wrong with your HTML at all.

You can't really target all browsers, especially old ones. If you do so, you would be limiting the site in newer ones. (But its really your...
Forum: JavaScript / DHTML / AJAX Aug 7th, 2008
Replies: 14
Views: 4,482
Posted By digital-ether
IE5.0? wow, I don't think there are many of those around.

Do you get any error messages in IE5.0? Or is the page just blank?
Forum: JavaScript / DHTML / AJAX Jul 18th, 2008
Replies: 2
Views: 823
Posted By digital-ether
Get the dimensions of each element. http://www.csscripting.com/css-multi-column/dom-width-height.php
Get the positions of each element. http://www.quirksmode.org/js/findpos.html
When they overlap,...
Forum: JavaScript / DHTML / AJAX Jul 18th, 2008
Replies: 5
Views: 713
Posted By digital-ether
You have the javascript within the PHP loop.

You need to take it out so that it loads only once.
Forum: JavaScript / DHTML / AJAX Jun 23rd, 2008
Replies: 20
Views: 5,508
Posted By digital-ether
JavaScript was designed for the browser and still is it's main use but its usefulness has outgrown just the browser.
It can run on the server side, just like PHP, Java etc.
It can be a standalone...
Forum: JavaScript / DHTML / AJAX Jun 21st, 2008
Replies: 3
Views: 1,137
Posted By digital-ether
Very accurate discussion here:

http://simonwillison.net/2004/Sep/20/newlines/
Forum: JavaScript / DHTML / AJAX Jun 21st, 2008
Replies: 20
Views: 5,508
Posted By digital-ether
I think that definition would mean that every programming language on a web server is a scripting language since it supports the web server's task of serving HTML. lol.. Just as JavaScript does it...
Forum: JavaScript / DHTML / AJAX Jun 21st, 2008
Replies: 4
Views: 3,428
Posted By digital-ether
I think what you want is how to populate a second select box based on the selection in the first select box and/or vise versa. (which isn't really nested select boxes)

Basically, the steps are...
Forum: JavaScript / DHTML / AJAX Jun 21st, 2008
Replies: 6
Views: 1,475
Posted By digital-ether
Normally XMLHttpRequest (XHR) can only be made to the same host.

Cross domain is only possible if the web service (remote host) implements it. Either using a workaround such as cookies, url...
Forum: JavaScript / DHTML / AJAX Jun 17th, 2008
Replies: 3
Views: 1,240
Posted By digital-ether
Use try{ ... yoru code ... } catch(e) { alert(e); } to see whats going wrong.
XHR also requires the same origin for request and remote server. Even if www or a sub domain is considered a different...
Forum: JavaScript / DHTML / AJAX Jun 17th, 2008
Replies: 4
Views: 2,025
Posted By digital-ether
How is your ezine subscription implmented? You'll need to be able to retrieve the list of users subscribed to your ezine, and have them insert their email, and/or password before carrying on.
...
Showing results 1 to 40 of 168

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC