I've partially resolved the problem as I noticed that I should have been calling the document element to interact with the getElementById operation rather than the txt variable that I had created myself.
However, the correct message doesn't show whether you change the value of the check box on the page and the 3rd if statement, with the != comparisons too look for the possibility that either checkbox is disabled, shows every time....
User Profile
Collapse
-
Hi Rabbit & gits, thankyou for your prompt reply. Thanks!
OK so Rabbit, you say that getElementById picks up the current state of the controls on the webpage. Well, what I am attempting to do is test the value of the "checked" attribute on a checkbox and run the method that contains this logic, from a button on my webpage.
The testing logic method for the checkbox in my .js file is:
...Code:function
Leave a comment:
-
How to fix a Object Reference Error?
Hi
The method below fails on the line marked in bold and I receive an object reference error. I know that this is a common error but, I've tried changing several assignments to ensure they match up with the required types and it the method still fails.
I also tried:
without the () after .InputData, but that still fails as well.Code:agentResponse(0).InputData = testMetaDataArray
Just for... -
Changing the Action attribute in the 'Form' tag
Hi there
How can I get the Form.Action value to change value when a HTML button called 'doiSubmit' on the page is selected but to stay null the remainder of the time?
I've placed the functionality in the Page_Load method as it seems the most sensible place to put it. The code I've developed is:
...Code:ContextStaticAttribute csa = new ContextStaticAttribute(); form1.Action = csa.Match("doiSubmit") -
With the exception of swapping the ^ and % signs around and changing the last clause to red, minimum of 3, maximum of 17, this is how it looked in the end:
^10\.[0-9]{4}/.{3,17}$Leave a comment:
-
Cancelling out Form.Action property after 1 instance
Has anyone got any suggestion for re-dressing this problem?
I can't see how it is possible to achieve with HTML and ASP inter-twined.
I looked on one site for a related issue and they suggested using the following method:
VerifyRendering InServerForm(co ntrol);
but this was erroneous on output, with an object reference error.
...Leave a comment:
-
Thanks Frinny, this has helped me a great deal!
The first 2 digits in a DOI are always 1 0, yes,
then there is always a dot
followed by 4 more digits then a "/".
After that, there is a random alphanumeric and symbol combination of up to 17 digits
I have worked with regex's before and am familiar with the sequences need to highlight usage of numbers and letters, but this is the trickiest one I've...Leave a comment:
-
-
Complex Regex Help
Hi there
I'm trying to develop a regular expression for my ASP.NET web page which will test the following strings:
10.1006/jmbi.1995.0238
10.1145/1219124.1219132
10.1109/TSC.2009.4
10.1177/016555150606490 2
I've used the following guidelines and have come up with:
\d{1,2}\w[^\]\w{16, }
but it's not working. Can anyone suggest a better one?
Cheers,... -
Customising XML Output using Repeaters
I'm builing a webpage with a drop-down menu and an XML-generated output, the latter of which is generated by the asp:Repeater tool.
The ASP code looks like this:
...Code:<asp:Repeater ID="rptRssFeed2" OnItemDataBound="rptRssFeed_ItemDataBound2" runat="server" Visible="False"> <ItemTemplate> <asp:Literal ID="litTitle2" -
Changing redirected website using Form.Action
Hi
Within a page of my website, I have HTML <input> text box and button control which, when selected, redirect to the site: http://dx.doi.org
The URL for this site is set in the ASP code page using the tag line:
<form method="post" id="form1" action= "http://dx.doi.org" runat="server">
and I was instructed to do this from another person.
... -
It's OK, I've solved this by using a better a approach - using Repeaters, Literals and Hyperlinks.
For the benefit of newbies to rss, just like me, this is the site I used:
http://www.wduffy.co.uk/blog/how-to-.../#comment-5101...Leave a comment:
-
Sure, my input is:
<rss version="2.0" xmlns:media="ht tp://search.yahoo.co m/mrss/"><channel>
<title>BBC News | UK | UK Edition</title>
<link>http://news.bbc.co.uk/go/rss/-/1/hi/uk/default.stm</link>
<item>
<title>Clegg bids to cool coalition talk</title>
<description>Ni ck Clegg is to say he is "not the kingmaker"...Leave a comment:
-
Retrieving multiple ListBox selections
Hi, I figure this has been asked somewhere before but, I can't retrieve the help I'm looking for.
Basically, I'm trying to parse the strings of all selected items in a ListBox called fileList.
I've tried this with a for loop as well as a foreach loop.
Code:foreach (ListItem li in fileList.Items)
In both cases, I've ensured to use:Code:for(int i = 0; i < fileList.Items.Count; i++)
...Code:fileList.Sele
-
Hyperlink asp control doesn't appear when set
Hi, I've got an XML file with one <title> and one <link> attribute.
What I want to do is implement a hyperlink with the name of the <title> element and whose NavigateUrl property is set to the <link> element.
For an unusual reason, the hyperlink never appears but, when debugged, both items from the XML file are appended to the hyperlink. What have I done wrong?
Cheers,
Matt
... -
Transposing an XML file using ASP.NET
How can I interpret an XML file for an RSS feed into a meaningful result for a webpage? I've been able to add in the text of an xml document into a text box, but can't think of what to do beyond that?
There are no specific XML~ASP controls?
Is reading the metatags of the file and parsing into a GridView or DataGrid my only other option?
Cheers
MattLast edited by jhardman; Mar 25 '10, 09:03 PM. Reason: you posted in the ASP-classic forum, and I believe you intended to post in the ASP.NET forum. I will move it over for you. -
No I'm not redirecting to a web proxy or downloading the doi, just screen scraping the site that it redirects to, which is unknown until the user redirects to it.Leave a comment:
-
Passing variables through non HTML object
Hi there,
I'll try and explain this as best as I can.
I have a search page which generates a GridView of results based on the search terms entered by the user.
One of the columns in GridView is called a DOI (Document Object Itentifier).
This DOI is used to find academic papers through http://dx.doi.org/ when a user enters a DOI string.
What I would like to do is redirect the user to the relevant... -
I don't want to "re-direct" them to an unknown URL, I want to be able to retrieve the url of a site they have been moved to. Here's the plan?
1. Enter information into text box.
2. Click on submit button.
3. Retrieve the resulting url that a user would have been redirected to if they had used the DOI website http://dx.doi.org/
4. Do stuff with the URL retrieved from step 2 e.g. read text, look for strings,...Leave a comment:
-
Yes, but that takes you to a "known" url.
I want to find a way to retrieve a url which is unknown until a user is redirected to it. Anyway, after talking about this with my supervisor, it seems that this is possible with antag, but I'm not so sure as according to:Code:<a href= "" >
http://www.w3schools.com/HTML/html_links.asp
this tag is a hyperlink....Leave a comment:
No activity results to display
Show More
Leave a comment: