Hi i'm trying to use jQuery/javascript to make my life easier. I'm trying to use it to auto fill in the various html elements with the name of the place and country which comes from the file name of the image. Below is a sample of some of the html i have to work with:
<div class="boxgrid">
<a href="gallery/angkor - cambodia.jpg" title="...
I am looking for a small and portable web browser to embed into my 3D engine. Basically, I need something small and fast that can render into a graphical buffer and take my input for links and stuff. It would be great if it could do JS as well.
So far I've looked at Gecko and Webkit and Webkit is the winner so far (Gecko is way too huge...
When using HTML custom attributes it doesn't works in Chrome.
What I mean is, suppose I have this HTML:
<div id="my_div" my_attr="1"></div>
If I try to get this attribute with JavaScript in Chrome, I get undefined
alert( document.getElementById( "my_div" ).my_attr );
In IE it works just fine.
...
I'm loading some HTML via Ajax with this format:
<div id="div1">
... some content ...
</div>
<div id="div2">
...some content...
</div>
... etc.
I need to iterate over each div in the response and handle it separately. Having a separate string for the HTML content of each div mapped to the id would satisfy my requirements. However,...
Well I have a survey on a website, and there seems to be some issues with the users hitting enter (i don't know why) and accidentally submitting the survey (form) without clicking the submit button. Is there a way to prevent this? I'm using html, php 5.2.9, and jquery, on the survey.
...
Edit: I have this line:
$comments = "http://www.kiubbo.com/index.php?action=comments&param=".$articles[$index]->getId();
And if I put it here it works out in the title tag, but not on the link or guid tags.
fwrite ($fp, "<item>\n");
fwrite ($fp, " <title>$title</title>\n");
fwrite ($fp, " <link>$comments</link>\n");
fwrite ($...
So if I have a HTML heading like this
<h2>A Heading</h2>
and I run Edit -> Format Document it ends up looking like this
<h2>
A Heading</h2>
why is this? It doesn't do it to other block elements, but it does do it to other inline elements (eg <label>).
Update: To clarify, I mean why is this the default, not where are the setti...
Hello
If I have a html form like the following:
<form name="statusForm" action="post.php" method="post" enctype="multipart/form-data">
Test:
<input name="checkboxes[]" value="Test" type="checkbox">
<br>
TestTestTest:
<input name="checkboxes[]" value="Test" type="checkbox">
<br>
TestTestTestTestTestTest:
<input name="checkboxes[]" value...
I am looking for a javascript on the fly "Table Of Contents" generation from HTML (with anchors).
Example:
<h1>First level1 heading</h1>
lorem ipsum
<h2>1a heading</h2>
lorem ipsum
<h2>1b heading</h2>
lorem ipsum
<h1>Second level1 heading</h1>
lorem ipsum
Should return something like
First level1 heading
1a heading
1b h...
async="async" attribute of a tag in html, What does it mean?
Can be see used here for example
...
Hi,
Is there a way to change the orientation for a div using css.
ie I need to display a div in a slanting position.
Is there a way by which I can define the four corners of the div
(x1,y1) , (x2,y2) , (x3,y3) and (x4,y4)
Edit
Is there a way to do it using javascript or C#??
Is there a way to change the orientation of an ima...
I have a php page, which launches a popup window containing a form with checkboxes. The originating window includes an external stylesheet.
The form html for the popup window is:
<form name="statusForm" action="post.php=" method="post" enctype="multipart/form-data">
<label for="Test">Test:</label>
<input name="checkboxes[]" value="Test...
Currently, the currency selector is at the top, here’s my development site:
http://nordschleife.metaforix.net/118/118/index.php/kyocera.html
However, I would like to switch the currency selector to just under “Price” heading of the table.
I tried
getCurrency() ?>
but there’s nothing. I guess I need some method like getCurrencyHtml()...
I have a .NET console application that needs to generate some HTML files. I could just construct the HTML in a StringBuilder and write the contents out to a file, but I was thinking it would be nicer to use some kind of template file with placeholders for where the data goes and then process my data through it at runtime.
I'm guessing t...
I need to create some buttons for a web app. However, I have no graphics/Photoshop skills at all. Is there a website/software out there that I can simply enter the text for my button and it will spit out a graphical image with those words on top?
I don't mind avoiding graphics altogether, but the links must look like a button. e.g. a b...
In my web app I use the following CSS to provide notices/error messages:
#notice {
border: 1px solid green;
padding: 1em;
margin: 1em;
margin-bottom: 2em;
background-color: lightgreen;
font: bold sans-serif;
color: darkgreen
}
But when a notice isn't required, I want to have white space equal to the amount of spac...
I have a page which should show a form with checkboxes, post back if it is checked or not, store the result in the database, and then on next loading of the page show the checkbox as checked, and update it as unchecked as necessary.
I understand my solution having the floating "checked" is not ideal, but it works fine, and I want to sti...
Hi All:
I have a html tag , in that initially I want tooltip name as mentioned in the "title" attribute. After I click on the link, I want different tooltip name. I have used the below code but it is not working. Can anyone please help me?
<html>
<head>
<script>
function tool(){
document.getElementsByName(link).title = "after click";
...
I'm trying to add details to a database by using ajax and table dynamic rows.
e.g.
----
{Customer: dropdown menu} | {Description: textarea} | delete
Add New Customer
---
When the user clicks it shows the drop down menu of all available customers. when you click away it just shows the select customer name (not the dropdown menu)
...
Hi All,
I am writing a small webspider for a website which uses a lot of javascript for links:
<htmlTag onclick="someFunction();">Click here</htmlTag>
where the function looks like:
function someFunction() {
var _url;
...
// _url constructed, maybe with reference to a value in the HTML doc
// and/or a value passed as argume...