Alright, so I've just (almost) finished my first little php script. Basically all it does is handling forms. It writes whatever the user put in to the fields of the form to a text file, then I include that text file in the index of the little page I have set up.
So, currently it writes to the beginning of the text file (but doesn't over...
My idea is to press a button that takes me to a web page.
I've created a thing that dynamically creates a button and an anchor tag.
When the button is clicked, I want it to "click"/fire up the anchor tag..
I've uploaded a demo to my site, when you try it out just leave everything as it is.
Click the first button then the add button righ...
Basically this, but in pure javascript:
http://stackoverflow.com/questions/2346257/how-to-get-value-of-select-tag-based-on-content-of-select-tag-using-nokogiri
So I have a select list with a lot of countries/states, and I want to be able to select one based on what is between the <option> tags.
<option value="4783">Argentina</option>
...
I'm developing a form with PHP and jQuery.
Here is the link:
http://www.yamaha-motor.com.pe/extreme/php/yamaha/registro/FrmRegistro01.php
It works fine on Firefox but not on IE.
What can you advise me??
Thanks
...
I have an external JavaScript in my HTML page. Is there a way to disable linking to or viewing this js file?
...
Okay I wrapped the divs within a div. Why does this not work?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>test.html<...
I am trying to append a link to the text as shown below:
<a href=\"http://blog.sysil.com/?page_id=5\">Contact Us</a> <br />Copyright © 2010 Stanley Lee. All Rights Reserved.
However, it is not linking properly. Do you know what is causing the linking error? Thanks in advance for your help!
...
Hello,
I have a list
<ul id="list">
<li>list1</li>
<li>list2</li>
<li>list3</li>
</ul>
and text box
<input type="text" name="textfield" id="tb" value="" />
When i click a button, all the list items should be in the textbox like this
list1 list2 list3
I want to do this in jquery. Please help me.
...
hi
I want my page's BODY not to be scrollable but a DIV inside the BODY should be scrollable.
I have this in my css file:
body {
overflow:hidden
}
.mainSection {
overflow:scroll
}
but it doesn't work and the DIV doesn't become scrollabel (it just shows two disabled scroll bars for the DIV)!
...
In my db I have saved every links in the form:
www.example.com or http://www.example.com
Is there a way to turn this text links into HTML links at the client side ( e.g. javascript ) with tag and parameter like this ?:
<a href="http://www.example.com" rel="nofollow">www.example.com</a>
...
How can I (using jquery or other) insert html at the cursor/caret position of my contenteditable div:
<div contenteditable="true">Hello world</div>
For example, if the cursor/caret was between "hello" and "world" and the user then clicked a button, eg "insert image", then using javascript, something like <img src=etc etc> would be ins...
Hello, why my "myns:button" don't become red in IE 6 / 7 / 8 unlike in Firefox / Opera / Safari / Chrome ?
<html>
<head>
<script type="text/javascript">
window.onload = function() {
var tmp = document.getElementsByTagName('myns:button');
for (i = 0; i < tmp.length; i++) {
...
Ciao a tutti,
nella Rails app che sto realizzando, l'utente ha la possibilita' di
inserire un post (campo memo) con all'interno una URL.
Ad esempio:
"bla bla bla bla www.blabla.com bla bla bla ..."
Nel mostrare tale post vorrei che www.blabla.com diventasse un link
cliccabile (come avviene in twitter).
Ovviamente deve essere fatto un...
Hi,
While considering another problem one question appeared.
I do not know how to write html when I want to redirect page when select option changes.
In other words user chooses option from select list and page is redirected after that.
Have you met anything like this?
Regards,
...
When user posts back a web form and then tries to refresh the page - dialog "would you like to resend information" pops up (Opera works silently though). To avoid this we can redirect browser to the page we'd like to show after postback. Now, when user refreshes the page, he duplicates get-request and no pop-ups.
Everything is ok but p...
Hello I have 3 flags (Italian, german, english) with the purpose to change language for the whole site in future. How can I make a border on a hover effect that could alxo work with IE ?
this is the CCS
.miniflags {
float:right
margin : 5px 20px;
padding-right:10px;
}
and here the HTML
<div id="bandiere">
<a><img s...
According to this manual: http://us2.php.net/setcookie I have to set the cookie before anything else.
Here is my cookie code:
if (isset($_COOKIE['watched_ads'])){
$expir = time()+1728000; //20 days
$ad_arr = unserialize($_COOKIE['watched_ads']);
$arr_elem = count($ad_arr);
if (in_array($ad_id, $ad_arr) == FALSE){
...
I'm using the following HTML code to autoselect some text in a form field when a user clicks on the field:
input onfocus="this.select()" type="text" value="Search"
This works fine in Firefox and Internet Explorer (the purpose being to use the default text to describe the field to the user, but highlight it so that on click they can j...
I am facing an issue while uploading a formatted text/html to the db, things work fine under the WAMP but when doing in LAMP I an having the backslash added to the quotes
string(114) "<p>
<img alt=\"\" src=\"/ckfinder/userfiles/images/aboutkg.jpg\" style=\"width: 607px; height: 221px;\" /></p>
"
I am using a Zend_Form and ckeditor...
So i have this in my form:
<textarea onfocus="javascript:clearContents(this);" rows="5" cols="40" id="comment" name="comment">Skriv hvorfor du vælger at stemme ja/nej. Skal indeholde detaljer, kritik/råd. Klik for at skrive</textarea><br />
Ja: <input type="checkbox" value="Y" id="SCvote" name="SCvote"> eller Nej: <input type="checkbox...