Firefox assumes type="submit" with a <button element.
Try <input type="button" value="step ..." instead of <button or return false when it's clicked.
Greetings, Harm Meijer
http://www.niceinchina.com
The form might have a function attached to it when it's submitted, it should return false to NOT submit the form but if it causes an error in firefox it will return nothing and submits the form.
Use firebug plugin and check the console in firefox for errors.
//script:
function...
Will look something like this:
<div>
<div id="show" onclick="this.style.display='none';this.parentNode.childNodes[1].style.display='inline'">show</div>
<div id="hide" onclick="this.style.display='none';this.parentNode.childNodes[0].style.display='inline'">show</div>
</div>
you can put it in...
window.onload=function(snd){
var links = document.body.getElementsByTagName("a");
for(link in links){
// check if link.href!=null
if(link.href.toLowerCase().indexOf("pubtext")!=-1){
link.target="_blank";
}else{
link.target="_self";
}
}
}
For better debugging please use firefox...
The sollution is:
res["/location/location/containedby"]
That will read the value for "/location/location/containedby"
Greetings, Harm Meijer
http://www.niceinchina.com
Lee, thanks for your reply
There is no way I can control what freebase is sending me (maybe changing the query will help but I don't see why).
Firebug can reed the variable so I should be able to do so too.
The example given above is what Freebase.com returnes to me, so there is no way to...
I get something back like this from freebase:
var result = {
"/location/location/containedby" : "the value",
otherval : 22
}
// result./location/location/containedby gives me syntax error (suggested by
// jsEclipse auto suggest
// result.location.location.containedby not working either...
Thank you for your replies, I'll just have php get a count first and depending on the result select grouped set or not.
This is because I can't even get a simple if statement to run in mysql nor setting a variable.
The following only creates errors in mysql:
set @row = select count(distinct...
Sorry to dig up an old thread here but I was wondering if I could use that found_rows and return data based on that.
Here is what the manual says:
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows
"it is desirable to know how many rows the statement would have...
I have firefox here and IE 6 but it works ok here, no need to escape the < character. Maybe you need more instances of <script to be replaced, to do that make the regexp global (g)
alert('<script\n<script\n'.replace(/<script/i,"hallo"));
alert('<script\n<script\n'.replace(/<script/ig,"hallo"))...
Hi, thanks for your reply.
Don't need the 2 floats as string and add them since I can just do it like this:
SELECT latitude, longitude, count( latitude )
FROM users
GROUP BY latitude, longitude
HAVING count( latitude ) > 1
They will not be grouped unless both latitude and longitude are the...
Well here is a second question:
How do I add strings in mysql sql expression?
select 'this' + ' will ' + ' be 0'
ends up giving me the value:
0
Greetings, Harm Meijer
http://www.niceinchina.com
Hello all and thank you for reading my question.
I have 2 float fields lat and long and want to have the rows collapse where both lat and long are the same.
I want to add the lat and long as strings and group them by that
select lat, long, count(lat + ' - ' + long) from ...
group by lat + ' -...
Just found out that preloading is not needed. display: none will not occupy space of the image. This way you can just let it load by giving the <img element its source and onload resize it. After all this time I never stumbled across the display property.
<script>
function resize(img){
//...
Not sure what you mean with different java page but if you have an item with the following properties:
description
itemID
price
discount
It is better to have them as separate properties of the <option in html.
For example:
<select id="mySelect">
<option discount="12" price="price"...
The problem with the image in html is that when the image loads even though it is set to hidden after loading it will reserve empty space for the image. If the image is 500 by 500 px it will have an empty space of 500 by 500 for the time script executes and looks strange too.
You can preload the...
I've added a lot of comments to my code. Hope you understand what the code does now.
<html>
<head>
<script type="text/javascript">
function populate(item){
// the item vatiable is the entire select element:
// <select name="Product Code Listing" ...
// lets see which of the option is...
You need to know if the exception occurs when creating the xmlhttprequest object or when trying to connect. Cross site scripting might not be allowed and then the exception occures when trying to connect (open method).
http://msdn2.microsoft.com/en-us/library/ms537505.aspx
look for "Security...
first of all I think you have the text and the value of the select mixed up the user sees values like 1B2 but the value (used for processing by script) is what the user should see because it is a lot more descriptive.
Anyway here is the code that will put the price in the textbox and I've...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.