User Profile

Collapse

Profile Sidebar

Collapse
mbewers1
mbewers1
Last Activity: Nov 12 '12, 04:59 PM
Joined: Feb 22 '09
Location: Bath, UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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....
    See more | Go to post

    Leave a comment:


  • 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
    ...
    See more | Go to post
    Last edited by mbewers1; Aug 31 '12, 11:30 AM. Reason: extra clarity

    Leave a comment:


  • mbewers1
    started a topic How to fix a Object Reference Error?

    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:

    Code:
    agentResponse(0).InputData = testMetaDataArray
    without the () after .InputData, but that still fails as well.

    Just for...
    See more | Go to post

  • mbewers1
    started a topic Changing the Action attribute in the 'Form' tag

    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")
    ...
    See more | Go to post

  • mbewers1
    replied to Complex Regex Help
    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}$
    See more | Go to post

    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.
    ...
    See more | Go to post

    Leave a comment:


  • mbewers1
    replied to Complex Regex Help
    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...
    See more | Go to post

    Leave a comment:


  • mbewers1
    replied to Complex Regex Help
    Thanks, I'll give it a try
    See more | Go to post

    Leave a comment:


  • mbewers1
    started a topic Complex Regex Help

    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,...
    See more | Go to post

  • mbewers1
    started a topic Customising XML Output using Repeaters
    in .NET

    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"
    ...
    See more | Go to post

  • mbewers1
    started a topic Changing redirected website using Form.Action

    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.
    ...
    See more | Go to post

  • 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...
    See more | Go to post

    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"...
    See more | Go to post

    Leave a comment:


  • mbewers1
    started a topic Retrieving multiple ListBox selections

    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)
    Code:
    for(int i = 0; i < fileList.Items.Count; i++)
    In both cases, I've ensured to use:
    Code:
    fileList.Sele
    ...
    See more | Go to post

  • mbewers1
    started a topic Hyperlink asp control doesn't appear when set

    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
    ...
    See more | Go to post

  • mbewers1
    started a topic Transposing an XML file using ASP.NET

    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
    Matt
    See more | Go to post
    Last 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.

  • mbewers1
    replied to Retrieving the redirected URL
    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.
    See more | Go to post

    Leave a comment:


  • mbewers1
    started a topic Passing variables through non HTML object

    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...
    See more | Go to post

  • mbewers1
    replied to Retrieving the redirected URL
    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,...
    See more | Go to post

    Leave a comment:


  • mbewers1
    replied to Retrieving the redirected URL
    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 an
    Code:
    <a href= "" >
    tag, but I'm not so sure as according to:

    http://www.w3schools.com/HTML/html_links.asp

    this tag is a hyperlink....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...