Initial javascript for page redirect without using submit link
Last Post 11-13-2012 05:07 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
hichamUser is Offline
wading in the water
wading in the water
Posts:21
Avatar

--
11-12-2012 07:29 AM

    Hi everybody,

    I usea javascript(whichreadsthe urlparameters).thereare2 parameters: 'guid'andboolean parameter asfollows:http://....aspx?CategoryProject=F69AB221-D9AD-455C-ACA0-284F60466A45&redirect=true

    thejavascriptI haveused in thefieldInitialJavaScript"moduleconfig/AdvancedCodingOptions(AJAX,jQuery,JavaScript,SQLInitialDataBind)/CustomJavaScriptFile/InitialJavaScript"

    Andthis is myscript:

    varloc=location.search.substring(1location.search.length);
    param_valuevar= false;

    if (loc.length>0){

    varparams=loc.split("&");

    for (i =0,i <params.length,i+ +) {
    varparam_name=params[i].substring (0,params[i].indexOf('='));
    if (param_name=='redirect')
    param_value=params[i].substring (params[i].indexOf('=')+ 1);
    }
    }

    if (param_value=='true')
    {
    document.forms[0].submit();
    }

    But the pagecontinues toload,anddoes notredirect

    Can someone help me?thanks

     


     

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-13-2012 05:07 AM
    Hello,

    Are you attempting to submit the Dynamic Form then redirect to the page you've specified? Or just redirect to the page you've specified if the querystring parameter value = True?

    I can see that you're attempting to submit the Dynamic Form, however there's a little more that goes into submitting a Dynamic Form.

    Please let me know.

    Thanks,

    Ryan


    ---
  • 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