User Profile
Collapse
-
acoder replied to JavaScript to check whether textbox contains only integer or numeric/number valuesin JavascriptHave you tested your code to see if it works? It seems a very convoluted way to check for integers. See https://developer.mozilla.org/en-US/...jects/parseInt -
The first link still works for me.
The 2nd one doesn't, but
http://ruby-doc.com/docs/ProgrammingRuby/
might be the same thing....Leave a comment:
-
Instead of forcing a download, why can't you just link to the file and have an appropriate plugin to play the file within the browser?Leave a comment:
-
Can you post your code or a link to a page demonstrating the problem?Leave a comment:
-
If by not rendering, you mean to take it out of the flow of the page, you can set the display property to "none":
Code:style="display:none;"
If that's not what you meant, can you please explain further with an example.Leave a comment:
-
I think in this particular case, it may be possible as the username and password is as stated and is already filled in.
If you look at the JavaScript, you will see an Ajax request when the form is submitted. If you replicate this code, it should be possible to bypass this page.Leave a comment:
-
Technically speaking, it may be possible. However, you'd need specific solutions for each browser and to allow the script to run on each individual browser for obvious reasons.Leave a comment:
-
You'll need to usetop
orparent
(or window. in front of either) to access the parent page. Call this onload from the PHP page C, e.g.Code:top.$.prettyPhoto.close();
Leave a comment:
-
That looks like a very IE-specific way of adding options.
I would suggest a simple:
Code:yourSelect.options[yourSelect.options.length] = new Option(text, value);
Leave a comment:
-
What have you tried so far? Please post your code.
Have you had a look at the fancybox documentation?Leave a comment:
-
With radio buttons, the value is only passed if one of the buttons is selected. You can set a default with cfparam.
I see that you've checked all of the buttons. You should only have one selected by default. The browser will only select one anyway, but it will probably be the last one.
Are the queries very different? If so, you can simply use something like:
Code:<cfif form.env EQ "DEV"> <cfquery
Leave a comment:
-
The idea is simple, e.g.
Code:var val1 = dropdown1.value; dropdown1.value = dropdown2.value; dropdown2.value = val1;
Leave a comment:
-
You would probably be best setting this in Ruby/Rails.
You've already set the selected option value:
Code:selected ="selected"
If you still need this done in JavaScript, let us know.Leave a comment:
-
That's great. Can you post your working code please for the benefit of others? Thanks.
PS. sorry, didn't get the chance to look at your posted code...Leave a comment:
-
Show your updated code with the textarea. Your original code has no textarea.
Also, font tags are deprecated and should no longer be used.Leave a comment:
-
acoder replied to how can i show specific data based on currently selected option in a dropdown list?in JavascriptYou have a number of options, e.g.
1. use a submit button which will submit the form and display the results based on the category selected.
2. use Ajax to get the results without reloading the page
3. use an iframe
I'd suggest number 2 and allow for number 1 where JavaScript is not enabled.Leave a comment:
-
There's no text in the span element. Add some text to see the change.Leave a comment:
-
JavaScript is case-sensitive. Line 19 should be:
Code:...style.[B][U]c[/U][/B]olor = ...
Leave a comment:
-
No activity results to display
Show More
Leave a comment: