Search Query Line











up vote
0
down vote

favorite












When I click the category for the License, nothing happens.



  <script>
function goToPage( select1 ) {

var node = document.getElementById( select1 );

if( node &&
node.tagName == "SELECT" ) {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center><label for="select1">Go to Marker</label></center>
<select id="select1" onChange="goToPage('select1')">
<?php
$conn=mysql_connect("localhost","root","");
mysql_select_db("dbposo",$conn);

$news=mysql_query("select id,license from tblviolator");

while($data=mysql_fetch_array($news))
{
$id=$data['id'];
$license=$data['license'];

print "
<option value='#X$id'>$license</option>
";
}
?>

</select>









share|improve this question
























  • Possible duplicate of Id searching on the same page
    – Cœur
    Nov 22 at 17:44















up vote
0
down vote

favorite












When I click the category for the License, nothing happens.



  <script>
function goToPage( select1 ) {

var node = document.getElementById( select1 );

if( node &&
node.tagName == "SELECT" ) {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center><label for="select1">Go to Marker</label></center>
<select id="select1" onChange="goToPage('select1')">
<?php
$conn=mysql_connect("localhost","root","");
mysql_select_db("dbposo",$conn);

$news=mysql_query("select id,license from tblviolator");

while($data=mysql_fetch_array($news))
{
$id=$data['id'];
$license=$data['license'];

print "
<option value='#X$id'>$license</option>
";
}
?>

</select>









share|improve this question
























  • Possible duplicate of Id searching on the same page
    – Cœur
    Nov 22 at 17:44













up vote
0
down vote

favorite









up vote
0
down vote

favorite











When I click the category for the License, nothing happens.



  <script>
function goToPage( select1 ) {

var node = document.getElementById( select1 );

if( node &&
node.tagName == "SELECT" ) {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center><label for="select1">Go to Marker</label></center>
<select id="select1" onChange="goToPage('select1')">
<?php
$conn=mysql_connect("localhost","root","");
mysql_select_db("dbposo",$conn);

$news=mysql_query("select id,license from tblviolator");

while($data=mysql_fetch_array($news))
{
$id=$data['id'];
$license=$data['license'];

print "
<option value='#X$id'>$license</option>
";
}
?>

</select>









share|improve this question















When I click the category for the License, nothing happens.



  <script>
function goToPage( select1 ) {

var node = document.getElementById( select1 );

if( node &&
node.tagName == "SELECT" ) {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center><label for="select1">Go to Marker</label></center>
<select id="select1" onChange="goToPage('select1')">
<?php
$conn=mysql_connect("localhost","root","");
mysql_select_db("dbposo",$conn);

$news=mysql_query("select id,license from tblviolator");

while($data=mysql_fetch_array($news))
{
$id=$data['id'];
$license=$data['license'];

print "
<option value='#X$id'>$license</option>
";
}
?>

</select>






javascript php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 17:18









Cœur

17.3k9102142




17.3k9102142










asked Feb 24 '14 at 10:19









user3346154

94




94












  • Possible duplicate of Id searching on the same page
    – Cœur
    Nov 22 at 17:44


















  • Possible duplicate of Id searching on the same page
    – Cœur
    Nov 22 at 17:44
















Possible duplicate of Id searching on the same page
– Cœur
Nov 22 at 17:44




Possible duplicate of Id searching on the same page
– Cœur
Nov 22 at 17:44












1 Answer
1






active

oldest

votes

















up vote
-1
down vote













This works fine for me.



    <script type="text/javascript">
function goToPage(select1) {

var node = document.getElementById(select1);

if (node && node.tagName == "SELECT") {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center>
<label for="select1">Go to Marker</label>
</center>
<select id="select1" onChange="goToPage('select1')">
<option value="#X1">1</option>
<option value="#X2">2</option>
</select>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X1">1</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X2">2</a>





share|improve this answer





















  • I am using a table, but how come nothing is happening ?
    – user3346154
    Feb 24 '14 at 10:34










  • Are your anchor-name tags in the same page?
    – Pradeep
    Feb 24 '14 at 10:38










  • My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
    – user3346154
    Feb 24 '14 at 10:45










  • the <a name=""> tag, where is that? It's not in your code.
    – Pradeep
    Feb 24 '14 at 10:47










  • Can I use <a name="$license">$license</a> ?
    – user3346154
    Feb 24 '14 at 10:49











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21984821%2fsearch-query-line%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-1
down vote













This works fine for me.



    <script type="text/javascript">
function goToPage(select1) {

var node = document.getElementById(select1);

if (node && node.tagName == "SELECT") {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center>
<label for="select1">Go to Marker</label>
</center>
<select id="select1" onChange="goToPage('select1')">
<option value="#X1">1</option>
<option value="#X2">2</option>
</select>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X1">1</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X2">2</a>





share|improve this answer





















  • I am using a table, but how come nothing is happening ?
    – user3346154
    Feb 24 '14 at 10:34










  • Are your anchor-name tags in the same page?
    – Pradeep
    Feb 24 '14 at 10:38










  • My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
    – user3346154
    Feb 24 '14 at 10:45










  • the <a name=""> tag, where is that? It's not in your code.
    – Pradeep
    Feb 24 '14 at 10:47










  • Can I use <a name="$license">$license</a> ?
    – user3346154
    Feb 24 '14 at 10:49















up vote
-1
down vote













This works fine for me.



    <script type="text/javascript">
function goToPage(select1) {

var node = document.getElementById(select1);

if (node && node.tagName == "SELECT") {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center>
<label for="select1">Go to Marker</label>
</center>
<select id="select1" onChange="goToPage('select1')">
<option value="#X1">1</option>
<option value="#X2">2</option>
</select>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X1">1</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X2">2</a>





share|improve this answer





















  • I am using a table, but how come nothing is happening ?
    – user3346154
    Feb 24 '14 at 10:34










  • Are your anchor-name tags in the same page?
    – Pradeep
    Feb 24 '14 at 10:38










  • My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
    – user3346154
    Feb 24 '14 at 10:45










  • the <a name=""> tag, where is that? It's not in your code.
    – Pradeep
    Feb 24 '14 at 10:47










  • Can I use <a name="$license">$license</a> ?
    – user3346154
    Feb 24 '14 at 10:49













up vote
-1
down vote










up vote
-1
down vote









This works fine for me.



    <script type="text/javascript">
function goToPage(select1) {

var node = document.getElementById(select1);

if (node && node.tagName == "SELECT") {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center>
<label for="select1">Go to Marker</label>
</center>
<select id="select1" onChange="goToPage('select1')">
<option value="#X1">1</option>
<option value="#X2">2</option>
</select>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X1">1</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X2">2</a>





share|improve this answer












This works fine for me.



    <script type="text/javascript">
function goToPage(select1) {

var node = document.getElementById(select1);

if (node && node.tagName == "SELECT") {

// Go to web page defined by the VALUE attribute of the OPTION element

window.location.href = node.options[node.selectedIndex].value;

} // endif


}
</script>
<center>
<label for="select1">Go to Marker</label>
</center>
<select id="select1" onChange="goToPage('select1')">
<option value="#X1">1</option>
<option value="#X2">2</option>
</select>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X1">1</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a name="X2">2</a>






share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 24 '14 at 10:31









Pradeep

1,9581113




1,9581113












  • I am using a table, but how come nothing is happening ?
    – user3346154
    Feb 24 '14 at 10:34










  • Are your anchor-name tags in the same page?
    – Pradeep
    Feb 24 '14 at 10:38










  • My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
    – user3346154
    Feb 24 '14 at 10:45










  • the <a name=""> tag, where is that? It's not in your code.
    – Pradeep
    Feb 24 '14 at 10:47










  • Can I use <a name="$license">$license</a> ?
    – user3346154
    Feb 24 '14 at 10:49


















  • I am using a table, but how come nothing is happening ?
    – user3346154
    Feb 24 '14 at 10:34










  • Are your anchor-name tags in the same page?
    – Pradeep
    Feb 24 '14 at 10:38










  • My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
    – user3346154
    Feb 24 '14 at 10:45










  • the <a name=""> tag, where is that? It's not in your code.
    – Pradeep
    Feb 24 '14 at 10:47










  • Can I use <a name="$license">$license</a> ?
    – user3346154
    Feb 24 '14 at 10:49
















I am using a table, but how come nothing is happening ?
– user3346154
Feb 24 '14 at 10:34




I am using a table, but how come nothing is happening ?
– user3346154
Feb 24 '14 at 10:34












Are your anchor-name tags in the same page?
– Pradeep
Feb 24 '14 at 10:38




Are your anchor-name tags in the same page?
– Pradeep
Feb 24 '14 at 10:38












My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
– user3346154
Feb 24 '14 at 10:45




My anchor-name is coming from my database sir. And I'm getting the value $license coming from my databse
– user3346154
Feb 24 '14 at 10:45












the <a name=""> tag, where is that? It's not in your code.
– Pradeep
Feb 24 '14 at 10:47




the <a name=""> tag, where is that? It's not in your code.
– Pradeep
Feb 24 '14 at 10:47












Can I use <a name="$license">$license</a> ?
– user3346154
Feb 24 '14 at 10:49




Can I use <a name="$license">$license</a> ?
– user3346154
Feb 24 '14 at 10:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21984821%2fsearch-query-line%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

How to ignore python UserWarning in pytest?

Alexandru Averescu