Click here to Skip to main content
15,892,059 members
Home / Discussions / Web Development
   

Web Development

 
SuggestionRe: Fresher in Web Development Pin
thatraja29-Jan-14 4:05
professionalthatraja29-Jan-14 4:05 
AnswerRe: Fresher in Web Development Pin
thatraja27-Jan-14 22:25
professionalthatraja27-Jan-14 22:25 
GeneralRe: Fresher in Web Development Pin
Mahi Bhat28-Jan-14 17:03
professionalMahi Bhat28-Jan-14 17:03 
AnswerRe: Fresher in Web Development Pin
W Balboos, GHB14-Feb-14 8:01
W Balboos, GHB14-Feb-14 8:01 
QuestionTemplate 1.4.1 - How to render the same layout without retyping all write command. Pin
dudz artiaga18-Jan-14 22:01
dudz artiaga18-Jan-14 22:01 
QuestionVertically aligning elements in the Twiter Bootstrap Navbar Pin
JMK8918-Jan-14 6:50
professionalJMK8918-Jan-14 6:50 
AnswerRe: Vertically aligning elements in the Twiter Bootstrap Navbar Pin
vbmike19-Jan-14 4:08
vbmike19-Jan-14 4:08 
QuestionNeed to get the parameter from URl to build href. Pin
Member 1052381615-Jan-14 7:38
Member 1052381615-Jan-14 7:38 
I need to get the userId from URL and then build the href dynamically.
For example in the URL the userId is Tom
then I want to build the href as
XML
../settings/userIdSetting.htm?userId=Tom
and assign it to <a id= "userSettingId" href="../settings/userIdSetting.htm?userId=Tom">User Account </a>
Is this possible.
Thanks in Advance,
Kim

<!DOCTYPE html>
<meta charset="utf-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sortable Table</title>
<script language="javascript" type="text/javascript" src="../js/common.js"></script>
<script language="javascript" type="text/javascript" src="../js/jquery-1.9.1.min.js"></script>
<script language="javascript" type="text/javascript" src="../javascript/d3.v3.min.js"></script>
<script language="javascript" type="text/javascript" src="../js/shCore.js"></script>
<script language="javascript" type="text/javascript" src="../js/shBrushJScript.js"></script>
<link type="text/css" href="../css/shCoreDefault.css" rel="stylesheet" />

</head>
<script>
    <pre lang="xml">// get the userId from URL
    var userId = getUrlVar(&#39;userId&#39;);

    function putUserId() {

        document.getElementById(&quot;userSettingId&quot;).innerHTML = &quot;../settings/userIdSetting.htm?userId=&quot; + userId ;
    }

&lt;/script&gt;
&lt;body onLoad = putTenantId()&gt;
&lt;h2&gt;Server Settings&lt;/h2&gt;
&lt;!-- Need to get the userId from URL --&gt;
&lt;a id= &quot;userSettingId&quot; href=&quot;../settings/userIdSetting.htm?userId=Tom&quot;&gt;User Account &lt;/a&gt;
&lt;br/&gt;

&lt;br&gt;
&lt;hr&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>

AnswerRe: Need to get the parameter from URl to build href. Pin
Izu Great30-Jan-14 12:57
professionalIzu Great30-Jan-14 12:57 
Questionhow do i Pin
megateck3312-Jan-14 11:38
megateck3312-Jan-14 11:38 
AnswerRe: how do i Pin
Richard MacCutchan12-Jan-14 22:49
mveRichard MacCutchan12-Jan-14 22:49 
AnswerRe: how do i Pin
thatraja13-Jan-14 0:00
professionalthatraja13-Jan-14 0:00 
AnswerRe: how do i Pin
tgsb14-Jan-14 18:55
tgsb14-Jan-14 18:55 
Questionhow to set default og:image? Pin
Jassim Rahma10-Jan-14 9:54
Jassim Rahma10-Jan-14 9:54 
QuestionAny advice for embedding a blog into a website Pin
JMK899-Jan-14 5:06
professionalJMK899-Jan-14 5:06 
AnswerRe: Any advice for embedding a blog into a website Pin
David Mujica9-Jan-14 5:47
David Mujica9-Jan-14 5:47 
Questionwhich social meta tag standard to use? Pin
Jassim Rahma8-Jan-14 11:53
Jassim Rahma8-Jan-14 11:53 
QuestionBig size Javascript Loadings Pin
Talglan29-Dec-13 2:09
Talglan29-Dec-13 2:09 
AnswerRe: Big size Javascript Loadings Pin
User 171649229-Dec-13 4:43
professionalUser 171649229-Dec-13 4:43 
Questionhow to file_get_contents in email body Pin
Jassim Rahma27-Dec-13 10:37
Jassim Rahma27-Dec-13 10:37 
AnswerRe: how to file_get_contents in email body Pin
W Balboos, GHB18-Feb-14 5:19
W Balboos, GHB18-Feb-14 5:19 
Questionis this a valid url for sitemap.xml? Pin
Jassim Rahma23-Dec-13 11:13
Jassim Rahma23-Dec-13 11:13 
AnswerRe: is this a valid url for sitemap.xml? Pin
vbmike23-Dec-13 14:29
vbmike23-Dec-13 14:29 
GeneralRe: is this a valid url for sitemap.xml? Pin
Jassim Rahma23-Dec-13 23:51
Jassim Rahma23-Dec-13 23:51 
GeneralRe: is this a valid url for sitemap.xml? Pin
vbmike24-Dec-13 3:21
vbmike24-Dec-13 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.