|
You have coded
cbkEdit.disabled=true;
twice. Is this what you mean to do?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
mistypo.. still not working
|
|
|
|
|
Exactly what is not working?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
What are you passing into the function? Are you passing the name of the elements as strings, or passing in as the actual object.
|
|
|
|
|
I am passing checkbox.ClientID
|
|
|
|
|
Hi,
please alert the value of cbkEdit, and check whether it is a valid object or not.And make sure that the ID is same.
|
|
|
|
|
if you look at my code I setting up checked=True/False and it working, only disabled not working.
|
|
|
|
|
I think u should check the Checklist.clientID. The following code works both in IE and Chrome.
<script type="text/javascript" language="javascript">
function chkboxlistchecking(chkMed, chkBeh, chkReports) {
// Go through all items of a check list control
var cbkSelect = document.getElementById(chkMed);
var cbkAdd = document.getElementById(chkBeh);
var cbkEdit = document.getElementById(chkReports);
if (cbkSelect.checked == true || cbkAdd.checked == true) {
cbkEdit.checked = true;
cbkEdit.disabled = true;
} else {
cbkEdit.checked = false;
cbkEdit.disabled = true;
}
}
</script>
<input id="ch_s" type="checkbox">Select</input>
<input id="ch_a" type="checkbox">Add</input>
<input id="ch_e" type="checkbox">Edit</input>
<br /><button onclick="javascript:chkboxlistchecking('ch_s','ch_a','ch_e');">check</button>
anyway , u can move cbkEdit.disabled=true out of the if statement.
function chkboxlistchecking(chkMed, chkBeh, chkReports) {
var cbkSelect = document.getElementById(chkMed);
var cbkAdd = document.getElementById(chkBeh);
var cbkEdit = document.getElementById(chkReports);
cbkEdit.checked = (cbkSelect.checked == true || cbkAdd.checked == true)
cbkEdit.disabled = true;
}
Good day,Good job,Good life
|
|
|
|
|
|
And what is the problem? What have you tried?
No comment
|
|
|
|
|
I have got the radio buttons to total up ok, I need some kind of code to get just one picture instead of all 4 in the results page
Any chance you could have a look Mark
|
|
|
|
|
I'm not meaning to be evasive but it is really a very simple if statement. You have a go at it yourself, then ask for help if you have problems
No comment
|
|
|
|
|
Hey Mark, I appreciate that, but im am stuck with were to start, can one of the pictures be shown subject to the total that is created by a user? using javascript?
I am learning currently learning javascript basics but struggling with making a script work for this project
|
|
|
|
|
Here is a hint
if(Foo < 5)
{
...
}
else if(Foo > 5 && Foo < 10)
{
...
}
Does that give you any thoughts?
No comment
|
|
|
|
|
No javascript will do nothing unless you ask it to. Once again, this is very simple exercise that would do you much better to attempt on your own rather than having someone give you the answer. Try something then post what you have and ask a question about what you don't understand
No comment
|
|
|
|
|
Below is code i have got from " this link.
can any one tell me.. what link it will generate??"[^]
var from = "2011-10-09";
var to = "2011-11-09";
if (to.match(/^\d{4}[-]\d{2}[-]\d{2}$/) && from.match(/^\d{4}[-]\d{2}[-]\d{2}$/)) {
var query = webCore.createQuery(webCore.marketAction.getDataSeries, {}, {
FromDate: from,
ToDate: to,
Instrument: webCore.getInstrument(),
hi__a: "0,1,2,4,21,8,10,11,12,9",
ext_xslt_lang: currentLanguage,
ext_xslt_options: "," + $("#adjustedId:checked").val() + ",",
ext_xslt: "hi_table_shares_adjusted.xsl",
ext_contenttype: "application/ms-excel",
ext_contenttypefilename: "_" +
webCore.getInstrument() + ".xls",
ext_xslt_hiddenattrs: ",ip,iv,",
ext_xslt_tableId: "historicalTable"
}
);
$("#excelQuery").val( query );
$("#excelForm").attr( "action", webCore.proxyURL ).submit();
i got this code from view source.
i think webCore.getInstrument() will return SSE4928 but am not sure whta will be whole query.. so i will get link and i can access data from it.
|
|
|
|
|
I am kind of at a lost here without being to know more about what webCore is. I can speculate that this is a webKit issue but I don't want to make that assumption.
from the text of your post...
Mugdha_Aditya wrote: Below is code i have got from " this link.
can any one tell me.. what link it will generate??"[^]
it looks like you intended to offer a link but maybe deleted it or something??
try posting the information again or if you can debug the call and see what query looks like. since you are assigning it to a text box I have to ask what are you seeing when you run the code??
if nothing then my first assumption is that query is not text but rather maybe an object.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
|
Mugdha_Aditya wrote: i think Webcore is jQuery File.
I can tell you that Webcore is not a part of jQuery or the jQuery UI. it might be part of a jQuery plugin but definitely not a part of the core jQuery.
I can see in the sight that you gave where they are including webCore and I can see where they are probably calling it with the search button but that doesn't help me with your question. I will help you with your questions but you have to do more of the reverse engineering.
just out of curiosity are you trying to reproduce what the sight does or something similar to it??
if so can I recommend that you look at node.js?? they have a great example of scrapping a page that will probably help with what you are trying to do.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
No..Not just for curiosity .. I need to collect page data of given page for some use.
Please help me.. how can i do that.
|
|
|
|
|
did you check out node.js[^] like I mentioned? they have some sample code for scraping for a web page.
in their example they scrape youtube and present it in a mobile jQuery ui listbox. maybe you can use that code as an idea to do the same thing?? I am sorry but reverse engineering another web page is a bit beyond normal question answering in my opinion.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
ohk.. thanks.
I just want to read the data in my code behind. (asp.net)
so i was tring to get website excel link..
|
|
|
|
|
|
It doesn't return anything.
The match is regex for a date 2011 11 19
This is the document path, because it just a file name, it resides in the same folder. So type in the url + filename below and see if it exist, your browser will display the xsl data.
ext_xslt: "hi_table_shares_adjusted.xsl",
Would it not be easier to just pay for a subscription to the data, it may only be $50 USD a month, and they will give you an api to fetch the information, and a username and password.
|
|
|
|
|
I have a string in the form of d+/d+/d+. For example, the string might be 1/1/2011. This string would represent the date January 1, 2011. This application uses a banker's year. That means 30 days for each and every month and 360 days to the year.
Now, if I have this string in a variable d1 what is the best way to extract the year, month and day?
Thanks
Bob
|
|
|
|