If I just put in XUL file
<label value="°C"/>
it works fine. However, I need to assing ° value to that label element and it doesn't show degree symbol, instead literal value.
I'm in the process of designing this site http://www.parisgaa.org/parisgaels and have a problem.
The image slider on the homepage messes up sometimes. Most of the time it works and looks fine, but other times its positioning seems to get messed up and it appears underneath the content that should be below it (i.e. with that content overlapping the image). You should be able to replicate this in Chrome - just refresh a couple of times.
I'd appreciate any help at all.
i am trying to make a text box no editable for the users. I tried using this code and it works. Any ramifications??? I mean do u suggest the use of this code or it may cause trouble for me in future???
<input type="text" name="west" value="fixed value" readonly />
I have this function:
function parseScript(_source) {
var source = _source;
var scripts = new Array();
while(source.indexOf("<script") > -1 || source.indexOf("</script") > -1) {
var s = source.indexOf("<script");
var s_e = source.indexOf(">", s);
var e = source.indexOf("</script", s);
var e_e = source.indexOf(">", e);
scripts.push(source.substring(s_e+1, e));
source = source.substring(0, s) + source.substring(e_e+1);
}
for(var i=0; i<scripts.length; i++) {
try {
eval(scripts[i]);
}
catch(ex) {
}
}
return source;
}
It parses and execute Javascript wonderfully except the when in <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> the src file never gets executed.
When showing data from a mysql table on an php page does it have to be in a table??
What I want to do is display my results in divs.
like so:
<div class="moviebox rounded"><a href="">
<img src=" $imgurl " />
<form method="get" action="">
<input type="text" name="link" class="link" style="display:none" value="http://us.imdb.com/Title? $imdburl "/>
</form>
</a></div>
And have that repeat for each one of the images in the database. How is this done?? I am fine showing the data in a table but can't seem to get this right
Hello,
I have a problem in creating a Button with text and image on it.
<td>
<button type="submit" name="report" value="Report"
<?php
if($tab == 'Excel')
echo "id=\"tab_inactive\"";
else
echo "id=\"tab_active\"" ; ?>>
<img src="images/report.gif" alt="Report"/>Report
</button>
<button type="submit" name="excel" value="Excel"
<?php
if($tab == 'Excel' )
echo "id=\"tab_active\"";
else
echo "id=\"tab_inactive\"" ; ?>>
<img src="images/Excel.gif" alt="Excel" width="16" height="16" /> Excel
</button>
</td>
Here $tab is
$tab = strlen(trim($_POST[excel]))>0 ? $_POST[excel] : $_POST[report];
I tried this way, but this is behaving so strangely.
On click the button:- The submit function is working properly in firefox, but not in IE.
Instead of submitting the value(in this example values are 'Report' and 'Excel'), indeed it is submitting the label of the button.
That is if i am checking the value of array PRINT_R($_POST). The value of it is
Array ( [report] =>(Icon that i used) Report
[excel] => (Icon that i used) Excel
[frm_analysis] => [to_analysis] => )
Here i have more than 1 button, then all the labels are submitted eventhough one of them is pressed. i dont how to capture which button is pressed.
I even tried changing button type=button and onclick="document.formname.submit()" Even this is resulting in the same.
Can you please help me to solve this.
hey, i have this path name from an input element interesse[angebote][flurfuerderfahrzeuge] as a string in my php var. now i need convert it somehow (with regex or explode()) so it looks like this: $_POST['interesse']['angebote']['flurfuerderfahrzeuge'] and the use eval() to get the value. But I'm sure there must be a much easier way do this.
Any ideas? Thanks!
hi,
I cannot click on the links (tags) on top of the page in IE7.
I tried to change z-index of the elements but it doesn't work.
Could you tell me what's wrong with it ? http://www.sanstitre.ch/drupal/portfolio?tid[0]=38
The mouse click is handled by jQuery function .click()
I'm sure javascript works because" Hide - Alphabetical Order menus" work
thanks
http://www.planet-tolkien.com/board/44/621/0/poll-suggestions
It's due to the multiple "bottom of the page" anchor links on each post to the anchor name at the bottom of the page. I tried to solve this by using a unique id and name for the attributes:
<a href="#bottom" id="4656" name="4656">
But this hasn't worked.
Suggestions?
P.S. Don't use the URL bar, yes that works. Visit the page and click on a link in a post that says "Bottom of the page". This is where it isn't working.
I am trying to control HTML5 videos using JQuery. I have two clips in a tabbed interface, there are six tabs in total, the others just have images. I am trying to make the video clips play when their tab is clicked and then stop when any of the others are clicked.
This must be a simple thing to do but I cant seem to get it to work, the code I am using to play the video is:
$('#playMovie1').click(function(){
$('#movie1').play();
});
I have read that the video element needs to be exposed in a function to be able to control it but can't find an example. I am able to make it work using JS:
document.getElementById('movie1').play();
Any advice would be great. Thanks
i have few field of data such as product , amount and barcode.The system just show 1 row of data insert form that contain the 3 field.when i completed insert the first row, then second row of textbox will auto generate, i can do it by microsoft access, can i do so for php ?
<?php $i=0; ?>
<form method="post" action="">
<input type="text" name="<?php echo $i; ?>" />
</form>
<?php
if(isset($_POST[$i])){
$i++;
?>
<form method="post" action="">
<input type="text" name="<?php echo $i; ?>" />
</form>
<?php }?>
it work for the first and second textbox, but how can i continue to create more textbox accordingly?
<a href="facebook.com/sharer" target="_blank" >Share this</a>
How do I make this a certain width and height, in a new window, when the user clicks on it?
In firefox, the current code only opens up a new tab (not a new window)
i need to run this sql query , which give me a list of Id and Dates
i want to click each result and take with me the Id value to the next form
i wrote this query above but i see in the debager that the hidden ID get his value but not pass to the next form
i think i have a problem with the submit() .
where should i put him ?
thanks anat
function ShowAllCarts($user_email) {
$connB = new ProductDAO();
$connB->Connect();
$pro_query = "SELECT * FROM Cart WHERE `Email`='$user_email';";
$db_result = $connB->ExecSQL($pro_query);
$html_result = '<div data-role="content"> <ul data-role="listview" data-theme="b"> ';
$html_result .= '<form action="PreviouscartProduct.php" method="POST"/>';
while($row_array = $db_result->fetch_array(MYSQLI_ASSOC))
{
$Id= $row_array['Id'];
$Date= $row_array['Date'];
//$html_result //
$html_result .="<li><a href='PreviouscartProduct.php'>Cart number: $Id from Date: $Date><input type='hidden' name='Id' value'<?=$Id?>'</input></a></li>'";
$html_result .= '<a onclick="this.form.submit();" </a>;
}
$html_result .= ' </ul> </div>';
$html_result .= '</form>';
$connB->Disconnect();
return $html_result;
}
//display all carts
$func_result = ShowAllCarts($Email);
I've seen this exact menu on two unrelated sites. How would I mimic it? Is it made with some popular framework?
Collapsed/normal state:
Here's the fly out state:
Is there a way to use javascript to determine how long someone was looking at my webpage before they closed their browser or hit the back button? Something like send a message to php page every few seconds or so in the background?
Hi all,
I have a javascript that dynamically creates many <img> tags, and appends them to various divs.
I want to prevent these images from wrapping; when the screen resolution is not enough to contain them the browser should create horizontal scroll-bars.
Sorry for this bad English.
Hello, Stackoverflow.
I submitted a form, to create single row in SQL database table, as a blog entry:
<p>This is a paragraph.</p>
And the result, when I query it out for display, via Rails's ActiveRecord, it rendered like this, :
<p>This is a paragraph.</p>
and here's the code, when I view source in browser:
<p>This is a paragraph.</p>
How do I solve this? Or I just have to convert the < and > by Javascript?
Thank you :)
hello, I've got one problem...
I created table(with one row and one column) for my site and then I put background for table using CSS where I defined image, after that I try to create in the first table another table with 3 rows, Dreamweaver doesn't allow me to do it, it puts new table after first, how can I solve this problem, thanks in advance...