Disable=true
Feb 27, 2007
I have a perl cgi form that has a popup_list. Based on a value that
is coming in from a database query, I want to either
1) display the value (from the databse) and let the user change it;
OR
2) display the value (from the database), but NOT let the user change
it.
I tried using javascript to disable the popup list, and that works,
except the form "loses" the value of the entry in the popup list.
Maybe "disable" is not the correct property I want to use. If that is
the case, what is it?
View 1 Replies
ADVERTISEMENT
Sep 14, 2011
Im creating a task loggin system and this allows the user to raise tasks and update them, im using javascript for validation and if the fields are empty it then changes the fields back ground to Red which is fine but then it goes on to update the data in SQL which i dont want, any suggestions or how i can achieve no post back is the result from the function is False (for fields in error)Html Code where im calling the function
<asp:button runat="server" id="btnChangeCommentsAuth" CSSclass="RaiseButton" OnClientClick="CommentsCheck('MainDisplayContentChange_txtAuthCommentsArea');" PostBackUrl="~/RaiseTaskChange.aspx" Text="Auth" />
[code]....
View 6 Replies
View Related
Feb 15, 2012
I have two grids, they both display buttons. One grid displays numbers, true or false and yes or no, and the other grid displays letters, true, false, yes and no.
The second grid is not displayed in the code (used css to not display second grid buttons (.answerBtns)) Now using the getButtons() function, if the user selects button "1" in first grid (the grid which you have to open using (Open Grid) link, then it should display button "A" in second grid, if user selects button "2" in first grid, then it should displays buttons "A" and "B" in second grid, if "3" then display "A", "B" and "C" and so on.
Now except using if statements and stating which buttons should be displayed and not displayed depending on the button chosen in first grid, is there a more efficent way of coding this so that the display of buttons in second grid depends on what is selected in the first grid?
If it is using an array can somebody show a sample of this in their answer. You can just do it for one example and then I should be able to use that to fill it for the other buttons.
View 1 Replies
View Related
Feb 14, 2011
I am trying to get the X and Y coordinates to have a pop up form to use as reference, this is a shopping cart so the more items in the cart the further down the page the form needs to open,
i have this CSS:
Code:
#theFormDiv6 {
display:none;
position:absolute;
top:500px;
[Code]....
I am not real good at JS and I am trying to piece together things.
This works in IE but does not in Firefox, when I comment out the getMouseXY() call it works in firefox but obviously doesnt get the new Y value..
anyone know how to make this work in both IE and Firefox??
View 2 Replies
View Related
May 30, 2006
I'm using window.location.reload(true) to refresh the current page. It
works fine in IE but in FF it doesn't seem to work correctly. If I
view the page source, I see that it has been updated, but the display
isn't updated. What's going on?
View 1 Replies
View Related
Dec 21, 2010
I am trying to set a checkbox to true; but with no success, setting to false works. Here is the code;
$('#check:checked').attr('checked', false); // works great
$('#check:checked').attr('checked', true); // Does not work..
I also tried this
$('#check:checked').attr('checked', 'checked'); // also did not work
As a Sanity check i did this and it works fine .. document.getElementById("check").checked = true;
View 4 Replies
View Related
Oct 13, 2011
I'm building a web app the processes information into a DB. I'm attempting to write a JS validation page. On this page I'm also trying to make the button perform a submit only if the validation returns as true.
Somehow I would like to say if all fields are true then submit to submission.php.
View 3 Replies
View Related
Mar 17, 2009
I dont present this information right, Im trying to make the most basic array, where if the objects in the array are found I need to return a true false statement. I cant get it to return a True Statement at all. Here is my code.
var GROUPTAGS =new Array("HOT","Hot","hot","H.O.T");
var TEST1 = "APB-HOT";
CHECK_FOR_TAGS_1 = TEST1;
for(var i in GROUPTAGS)
[Code]...
View 1 Replies
View Related
Jul 21, 2009
I've setup a form on my website and added a simple validation script to check a few of the fields. After all the validations are done I want the submit button to process two other functions that will handle the submission of the form.
The problem is that if the validation returns true the script just stops and doesn't run the other two functions.
Here is my validation script:
Then on my submit button I have:
View 10 Replies
View Related
Jul 30, 2009
Got a timing issue with sending a URI string out to a server side script right before a client side form validation process returns true..The problem is that the return true gets called to quickly for the submission of the URI string to be completed.So my question is, might there be a way to mix a return and a setTimeout?
View 6 Replies
View Related
Aug 18, 2011
i am using the fightBoss() function to start run the main functions read the comment under[URL]when you get to the function useInventoryItemMS(item) the if statment gets stuck not sure if its before or after then but when it gets stuck theres a reload function purposly to stop the script from getting stuck but for some reason its not getting to the if statment to clear the queue to stop the reload and then do the next queue set in the if statement.
View 1 Replies
View Related
Apr 24, 2009
i have a select tag that has values 0 -5 what i want is to show a input field if the value is more than 0 below
[Code]...
View 1 Replies
View Related
Jan 30, 2010
I have a code where it checks the userID and email. If it is OK then a check mark image is displayed, however I cannot get it to work on my email input. All it get is OK
[Code]...
View 3 Replies
View Related
Feb 19, 2010
I have this little script working great when all if's are seperated. what i need is to have the script read if one of these fields has a value then result=true. as you see the script now i have this seperated in many different if's for all three text fields. I need to put all text fields like they were one,
[Code]....
View 5 Replies
View Related
Jul 20, 2005
Lets say I have this array:
a1 = [1,"2",new Array(2.5,3,3.5),4];
And I apply slice(0) on it, to create a copy:
a2 = a1.slice(0);
But this isn't a true copy. If I go a1[2][1] = 42, and then
alert(a2[2][1]) I will see 42 there too. I'm doubting, but I was
wondering if there is a general solution to this problem?
View 20 Replies
View Related
Jun 25, 2010
I just started to use jquery. What is the easy way to do this:
[Code]...
View 4 Replies
View Related
Feb 12, 2011
I have a question concerning :contains(). I use it in the following manner:
if($("div:contains('Built From')", $(itemProps)))
{
//Do stuff.
}
itemProps is DOM Element. It has a a div inside it which class is always something else however that div has either "Built From" or "Builds Into" as a text. Inside itemProps there is no other div with those words. I want to know which of those texts the div within itemProps contains. However this bit of code seems to always return true. Some goes for when I use the text "Builds Into". Even when the text is not in the div.
View 4 Replies
View Related
Jul 14, 2009
If "this" inside of a sortable "receive" function refers to the receiving object, How do I access the object to which the receive function belongs?
Example:
// Function that takes a JQ object and makes it sortable.
// We assign the "SortableRecieve" method to the receive event
MyObject.prototype.MakeSortable = function(JQOBJ){
JQOBJ.sortable({
receive: this.SortableRecieve
});}
MyObject.prototype.DoSomething = function(){
// Does something important
}
// The actual function that gets called when the receive event occurs
MyObject.prototype.SortableRecieve = function(event, ui){
// This function call won't work, because "this"
// doesn't point to the right thing!
this.DoSomething();
}
So how can I access the "True" this that refers to the object?
View 2 Replies
View Related
Aug 6, 2010
I found a similiare question I have - being answered in this thread:But not quite.Im using the following code:
<button link="http://google.com" title="Remove '.$larmanlaggning[$i][2].'"';
?>
onclick="$.prompt('Are you sure?',{buttons:[{title: 'Yes',value:true},{title:
[code].....
View 2 Replies
View Related
Mar 18, 2010
I'm brand new to jquery, and am trying to set up a dynamic navigation dropdown which is populated with XML by our system (which I can't change.) For some reason, IE6 is showing space where the unused <li></li> tags are. I am trying to create a jquery code which will detect whether or not a link is present in the <li> so I can turn the display off or on dynamically. The relevant jquery code is here:[code]It should eventually appear like this, the way it does in Firefox due to CSS styling:[code]Which means that somehow, it is reading the <a> even when there isn't one.
View 4 Replies
View Related
Feb 8, 2010
i'm trying to make a form where if 2 particular options are chosen from 2 dropdown boxes, it puts a value in a text field. so far i've got
if (document.profile_quote.thickness.selectedIndex == "3" && document.profile_quote.machine.selectedIndex == "1") document.profile_quote.cutspeed.value = "34444"
View 11 Replies
View Related
Mar 26, 2010
I have menu which nested with sub menu like this,
Code:
<div id="menu">
<ul>
[code]....
View 2 Replies
View Related
Apr 29, 2010
This is driving me freaking crazy. I have a RegExp, and a String. When I alert RegExp.test(String), I get "true." Sweet. Then I run String.replace(RegExp, ""), in an attempt to get rid of whatever was matched. But that does not change the string at all.
Am I misunderstanding replace, or what?
View 4 Replies
View Related
Nov 4, 2010
Would this code i made
[Code]..
Would that be an exmaple of arrays with elements intilized to 1(true)
View 1 Replies
View Related
Aug 8, 2005
function show() {
var s = '' ;
for (var i = 0; i<arguments.length; s += '
'+arguments[i++]) ;
typeof(window) != 'undefined' ? window.alert(s) : WScript.Echo(s) ;
}
function f(){}
show('delete(f):',delete(f)) ; // false
g = function(){} ;
h = new g() ;
show('h:',h) ; // [object Object]
show('delete(g):',delete(g)) ; // true
show('h.constructor:',h.constructor) ; // function(){}
show('delete(h.constructor):',delete(h.constructor )) ; // true
show('h.constructor:',h.constructor) ; // function(){}
View 2 Replies
View Related
Apr 2, 2007
I've been playing around with some means of testing image loading, and noticing that the "complete" property seems to default to true. Trying the following in the squarefree javascript shell:
I = new Image();
I.complete
yields "true".
Seems a bit odd -- obviously there's no src given yet, so is it really complete? Is this behavior defined that way on purpose? If so, what's the justification?
View 4 Replies
View Related