Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

How to Get Referrer Captured to a Field
Last Post 08-29-2011 11:39 AM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Jeremy FarranceUser is Offline
going with the flow
going with the flow
Posts:31
Avatar

--
08-29-2011 03:42 AM
    I need to capture the URL of the previous page so we know which JobID started the form application. I am having no problem grabbing this via JavaScript, but how/where do I actually get it assigned to either a Textbox or Hidden for field? Thanks - Jeremy
    Jeremy FarranceUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    08-29-2011 05:35 AM
    Some more detail...

    We are trying to get the job application linked to the JobID that the user started from. To start the process they are on a specific Job page and they click Apply to arrive in Dynamic Forms.

    So document.referrer.toLowerCase() is
    http://www.domain.com/Open-Position...id/10.aspx

    On the Dynamic Form I have added a field JobID. I have tried it as both a TextBox and a Hidden Field with the following Advanced Field Options

    Client side event:
    $(JobID) = document.referrer.toLowerCase().replace('.aspx','').split('jobid/')[1];

    No matter what I do or how I modify/test this, the JavaScript never puts “10” in to the JobID field.

    So next I tried moving the same code to the Module Configuration, Custom JavaScript File, Initial JavaScript. This also does nothing.

    I am not sure what I am missing here. Is there another way to accomplish this? I simply need to save either the full Referrer URL or parse out the JobID.

     

    Thank you for any assistance – Jeremy 

    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-29-2011 06:52 AM
    Hi Jeremy,
    Keep with the client side event for trying to solve this.

    As some extra info, have on 1st page your field and make it a hidden field as you don't need to display anything to the user. You can change fields from hidden to regular text to see what is going into the field while testing. You have called it $(JobID). Just to cover our bases here for passing the value to another page let me say that in the advanced field options check the setting to' Pass values of this question to session variable:'. Then on the second page you will want another field with the same short name of $(JobID). On that page you need to receive the value with the setting in advanced field by clicking the 'Retrieve values from session variable for this question:'. This is how you get value from one page to the next.

    Now I question your javascript is working for the following: "$document.referrer.toLowerCase().replace('.aspx','').split('jobid/')[1];" as it seems to get what you are grabbing into a lower case when you put it into the field you are calling $(JobID). But you say that you can't get 10 to go to the $(JobId) field you are making. That tells me you may be having trouble stripping the 10 out of the url of " http://www.domain.com/Open-Position...id/10.aspx" target="_blank" rel="nofollow">http://www.domain.com/Open-Position...id/10.aspx" with that javascript because the javascript itself is wrong. If you want the 10 to come out of the " http://www.domain.com/Open-Position...id/10.aspx" target="_blank" rel="nofollow">http://www.domain.com/Open-Position...id/10.aspx" wouldn't you need to use something like var = window.location.href to first get the URL into a variable and then find the substring of the variable to get to the 10? Once you have the value then setting it to $(JobId) should display.

    But the Client Side Script box is the right place to make this happen.

    Thanks
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    08-29-2011 11:39 AM
    Where are you capturing this at? Because there are a few other items you can use...

    Within email events, and SQL Events, or as a SQL default value you could reference this token:

    $(URLReferrer)

    There is also $(CurrentURL) as a token.

    So, depending on where you need it this is probably the token you need. You can set the value of a hidden field or textbox field to this value to using the SQL validation.

    Thanks,

    -Chad
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
     
     
       
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi