Search Results

Showing results 1 to 40 of 188
Search took 0.04 seconds.
Search: Posts Made By: ~s.o.s~ ; Forum: JavaScript / DHTML / AJAX and child forums
Forum: JavaScript / DHTML / AJAX Sep 20th, 2009
Replies: 8
Views: 495
Posted By ~s.o.s~
Thinking about it in this way might help your cause:

power(2, 3) =>

- 2 * power(2, 2)
- 2 * (2 * power(2, 1))
- 2 * (2 * (2 * power(2, 0)))
- 2 * (2 * (2 * 1))
- 2 * (2 * 2)
Forum: JavaScript / DHTML / AJAX Feb 10th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
> Hi, i have made those changes

It seems you haven't since I still see the call "MM_callJS('order(this.form)')"; re-read reply 10.
Forum: JavaScript / DHTML / AJAX Feb 8th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
Have you made the fix suggested in my previous post? Re-post the entire code and point out the line which is having problems.
Forum: JavaScript / DHTML / AJAX Feb 8th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
> MM_callJS('order(form1)')

Replace the above with order(this.form);.

> and i also change the form1 in my function to this.form

Like I mentioned, change form1 to this.form only in onchange...
Forum: JavaScript / DHTML / AJAX Feb 8th, 2009
Replies: 7
Views: 2,212
Posted By ~s.o.s~
> But it is giving error that x is null. Can any one please correct it?

Because the `style' property is only set when inline style sheets are used. To get the style details of the element whose...
Forum: JavaScript / DHTML / AJAX Feb 7th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
I already provided the fix in my previous post. If what you posted really is your code then you shouldn't have problem understanding the fix I suggested. Anyways like I mentioned, you need to replace...
Forum: JavaScript / DHTML / AJAX Feb 6th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
It is only in IE[and some other buggy browsers] that the NAME or ID attribute of an element represents the element in consideration; which actually isn't correct. You actually need to grab the...
Forum: JavaScript / DHTML / AJAX Feb 5th, 2009
Replies: 15
Views: 2,405
Posted By ~s.o.s~
Sifting through that massive piece of code would be time consuming. If developing on Firefox, look into the Firebug addon which adds capabilities like Javascript debugging, error detection etc. Look...
Forum: JavaScript / DHTML / AJAX Jan 8th, 2009
Replies: 4
Views: 1,564
Posted By ~s.o.s~
If you want to execute an action [i.e. send a HTTP request] without reloading the page, you have two options:
- Remote scripting via hidden IFRAME...
Forum: JavaScript / DHTML / AJAX Jan 7th, 2009
Replies: 10
Views: 2,193
Posted By ~s.o.s~
Checking out that huge chunk of code for Javascript errors is quite a herculean task.

To ease your development, I would recommend that you carry out your development testing in Firefox and make...
Forum: JavaScript / DHTML / AJAX Jan 2nd, 2009
Replies: 10
Views: 2,193
Posted By ~s.o.s~
The check for email == undefined is superfluous since a value of text form field, if it exists will never be `undefined' or `null' but always a empty string if nothing was entered. You should rather...
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008
Replies: 8
Views: 1,941
Posted By ~s.o.s~
If that's your requirement then you need to change your original code which is as of now setting the onmouseover property of A elements and not LI elements in which the A elements are nested i.e....
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008
Replies: 8
Views: 1,941
Posted By ~s.o.s~
A pure CSS solution:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Script-Content-Type"...
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008
Replies: 6
Views: 1,525
Posted By ~s.o.s~
I need a bit more background on the requirement/problem here as in what is the source of the XML you are talking about? Is is shipped over the network using an async call in the form of AJAX or read...
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008
Replies: 8
Views: 1,941
Posted By ~s.o.s~
> Whenever possible, you should always use the W3C
> 'document.getElements...' methods rather than collections such as
> document.links, .forms or .images

links ...
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008
Replies: 5
Views: 1,416
Posted By ~s.o.s~
> Is it possible to pass a large parameters with the POST request ?

Ideally yes, since I find no mention of a limit in the HTTP specification. Practically, it depends on both the browser/user...
Forum: JavaScript / DHTML / AJAX Dec 28th, 2008
Replies: 5
Views: 1,416
Posted By ~s.o.s~
> How can I achieve this ?

In case of a GET request, the data is embedded in the query string while in case of POST request, it is passed as a argument to the send method of XHR object. Read this...
Forum: JavaScript / DHTML / AJAX Dec 28th, 2008
Replies: 3
Views: 6,536
Posted By ~s.o.s~
The given JSON can be simplified as:
var json = [
{"zip" : "27603", "city" : "Raleigh", "state" : "NC"},
{"zip" : "25071", "city" : "Elkview", "state" : "WV"}
];
for(var i = json.length - 1;...
Forum: JavaScript / DHTML / AJAX Dec 24th, 2008
Replies: 6
Views: 1,525
Posted By ~s.o.s~
Maybe something like [untested]:var reg = /(<span[^/>]+)\/>/gi;
var str = "<span id='d'/><div id='3'>d</div>" +
"<span id='j' style='blah: 10px'/>";
var a = str.replace(reg,...
Forum: JavaScript / DHTML / AJAX Dec 20th, 2008
Replies: 4
Views: 973
Posted By ~s.o.s~
> Since all of the checkboxes have the same ID

You would be violating the specification if you had more than one HTML element with the same value of ID attribute. There are better/valid ways of...
Forum: JavaScript / DHTML / AJAX Dec 19th, 2008
Replies: 4
Views: 973
Posted By ~s.o.s~
From what I understand, your web page has a text field which allows the user to enter his search criteria. Based on the user input, a new set of check boxes are fetched from the server but before...
Forum: JavaScript / DHTML / AJAX Nov 27th, 2008
Replies: 6
Views: 2,380
Posted By ~s.o.s~
There are better ways to understand sorting than doing things the hard way. Anyways, what you can do is:
- Sort both the arrays
- Inspect the first element of both the arrays
- The array which has...
Forum: JavaScript / DHTML / AJAX Nov 11th, 2008
Replies: 3
Views: 5,148
Posted By ~s.o.s~
Google for createElement and insertBefore.
Forum: JavaScript / DHTML / AJAX Nov 11th, 2008
Replies: 2
Views: 1,551
Posted By ~s.o.s~
Use the Error Console feature of Firefox to track down Javascript errors. Use the Firebug extension of Firefox for debugging Javascript application. Also don't search for parent elements of node,...
Forum: JavaScript / DHTML / AJAX Nov 10th, 2008
Replies: 3
Views: 2,278
Posted By ~s.o.s~
As per the specification, in a HTML document, the ID attribute must be unique. Assign a different ID and NAME to each INPUT element. Don't use GET, use POST for sending your form data.
Forum: JavaScript / DHTML / AJAX Nov 4th, 2008
Replies: 8
Views: 2,674
Posted By ~s.o.s~
You have a few options:
- Creating hidden fields which hold your temporary results.
- Saving the state in a global variable which can be used across function invocations.
- Creating your own...
Forum: JavaScript / DHTML / AJAX Nov 3rd, 2008
Replies: 8
Views: 2,674
Posted By ~s.o.s~
The script in case of a SCRIPT element may be defined inside the contents of the SCRIPT element or in an external file. The only difference here is that an additional request is made in the case of...
Forum: JavaScript / DHTML / AJAX Oct 30th, 2008
Replies: 8
Views: 871
Posted By ~s.o.s~
Trial and error has little place in programming; get a good book or a solid online reference (MSDN or Mozilla tutorials) and learn more about Ajax.
Forum: JavaScript / DHTML / AJAX Oct 30th, 2008
Replies: 8
Views: 871
Posted By ~s.o.s~
> I'm using ajax and can't use post method!!

Technically, you *can* use the POST method when using Ajax, there is nothing which prevents you from doing so; whether it pertains to your...
Forum: JavaScript / DHTML / AJAX Oct 30th, 2008
Replies: 8
Views: 871
Posted By ~s.o.s~
You have two options:
- Either come up with intelligent URL rewriting rules so that situation as mentioned above can be effortlessly handled. I am sure it can be, it just requires a bit of tact with...
Forum: JavaScript / DHTML / AJAX Oct 30th, 2008
Replies: 8
Views: 871
Posted By ~s.o.s~
> here it is impossible to add variables to the url and success

Why is it impossible?

What prevents you from creating a URL of the form http://somesite.net/en/page?name=somename&age=someage?
...
Forum: JavaScript / DHTML / AJAX Oct 26th, 2008
Replies: 4
Solved: JS Grade Calc
Views: 962
Posted By ~s.o.s~
Your HTML document is not valid; it lacks a DOCTYPE. Also your question isn't very clear here. What kind of an help do you need since except for a few problems it pretty much looks OK. As for the...
Forum: JavaScript / DHTML / AJAX Sep 25th, 2008
Replies: 6
Views: 3,955
Posted By ~s.o.s~
Declare a variable 'test' outside the loop and inside the loop append the value of the selected option along with a '|' to `test'. Try it. Did you get the desired result? If no, then why? What seems...
Forum: JavaScript / DHTML / AJAX Sep 20th, 2008
Replies: 2
Views: 888
Posted By ~s.o.s~
Haven't you received enough replies here (http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/3694a8394abe7aae)? Please refrain from double posting or at least let us know you...
Forum: JavaScript / DHTML / AJAX Sep 13th, 2008
Replies: 8
Views: 3,330
Posted By ~s.o.s~
> Anyway ... for educational purposes it's good to know, where IE stores reference to this
> Button1

Not sure if I understand this correctly, but there is no reference stored, only the default...
Forum: JavaScript / DHTML / AJAX Sep 13th, 2008
Replies: 8
Views: 3,330
Posted By ~s.o.s~
Yes, there does seem to be some weird mumbo jumbo going on there. It seems that pressing the RETURN key causes the button to be pressed and hence the x=0&y=0 values in the querystring. One solution I...
Forum: JavaScript / DHTML / AJAX Sep 11th, 2008
Replies: 8
Views: 3,330
Posted By ~s.o.s~
This sure is a weird problem; without looking at the code, it would be kind of difficult to arrive at a solution. BTW, how are you attaching event listeners to your components? Are you using...
Forum: JavaScript / DHTML / AJAX Sep 11th, 2008
Replies: 4
Views: 779
Posted By ~s.o.s~
Not sure what exactly you mean by Javascript *studios* but there are many noticeable differences between Javascript and Flash. Flash is an entire development platform in the sense that it comes...
Forum: JavaScript / DHTML / AJAX Aug 28th, 2008
Replies: 3
Views: 2,519
Posted By ~s.o.s~
Take a look at the generated source code, try to analyze it and you would know the answer to all your questions.
Forum: JavaScript / DHTML / AJAX Aug 24th, 2008
Replies: 9
Views: 2,042
Posted By ~s.o.s~
It simply means that an element with an ID having the value contained in the variable 'f' at that point in time doesn't exist. Try alerting the value of 'f' inside the loop and search for an element...
Showing results 1 to 40 of 188

 


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

©2003 - 2009 DaniWeb® LLC