Hi all,
I am creating a cakephp application in which im uploading a image. But on some functionality of my app i want to display the image in specific height n width, without compromissing in image quality. So please suggest me if ther is any way to do this.
...
Hi,
I have a very complex DOM structure,
A small for example or say demo of code,
<div>
<div class="test_data">
<span>sample 1</span>
<span>sample 1</span>
<span>sample 3</span>
<span>sample 1</span>
<span>sample 2</span>
</div>
</div>
Now on above example, I have to find all the tag having sample 1 and want to r...
I'm looking for best way to initiate call from a web page, and am trying to choose between the callto: and the tel: URL protocol.
The link will be a normal telephone number, not a Skype account, and I'm trying to support as many platforms as possible, including Skype and other similar VOIP applications, as well as Smartphones like the ...
I have a contenteditable div which needs to be focussed at pageload (place cursor at the first line).
document.getElementById("editor").focus() works well in Firefox and IE, but in Chrome/Safari it just selects the entire content!
Is there a way to make this work properly?
Thanks in advance,
Shesh
...
Are there any common keyboard navigation practices, used to improve when browsing a web site?
I'm thinking of the accesskey HTML attribute, which lets you define default fields for a specific command, like alt+1 for the link leading to the start page, or similar.
Is there a kind of standard somewhere?
...
I'm working on a C++ project and I need to find an external library which
provides HTML parser and regular expression support.
The project is under 2 OS - iOS & Android.
I was thinking using libxml2 which has a HTML parser module and xml regular expression.
Can I use the xml regular expression module on HTML page?
In addition, I need...
here is my code :
import socket
import sys
import re
import base64
import binascii
import time
class Serverhttp:
def __init__(self):
self.GET = re.compile("GET.*?HTTP")
self.POST = re.compile("GET.*?HTTP")
try :
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ...
I have an application that generates a element with an 'action' attribute. I need to change the value of the action attribute, but it's not possible to do that. However it is possible to add another 'action' attribute before the generated one thusly:
This seems to work for IE. I'd like to know if this behavior is defined in the w3c ...
While filling out HTML formulars, the iPhone Keyboard has a black bar on top with the buttons "Back", "Next" and "Done". This bar isn't present on native apps.
I would like to know if there is a way to change the iPhone layout on a webapp in order to hide the bar?
...
I want to move a right menu to the left side, the problem is that I cant rearrange all the html, I have to do this with CSS. The HTML template looks like this:
<style type="text/css">
#all{background:gray;width:400px}
#content{
background:yellow;width:300px;
position:absolute;
margin-left:100px;
float:left;
}
#menu{background:red;wi...
If the content type and character set are declared in the PHP header, is there a reason to have them again in the usual HTML DTD?
<?php ob_start( 'ob_gzhandler' );
header('Content-type: text/html; charset=utf-8'); ?> // here
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti...
Hi,
Im not sure how to correct these errors, can someone help me.
search.php
Notice: Undefined index: submit in C:\wamp\www\i-document\search.php on line 12
Notice: Undefined index: search in C:\wamp\www\i-document\search.php on line 13
After clicking 'search' :
Notice: Undefined variable: x in C:\wamp\www\i-document\search.php on l...
I need to get the actual html code of an element in a web page.
For example if the actual html code inside the element is "How to fix"
Running this javascript
getElementById('myE').innerHtml gives me "How to fix" which is the decoded form
How can I get "How to fix" using javascript?
...
The problem is this:
You have a textbox, you type in some text, send it to the server. On another page, that value is retrieved and displayed on screen in a textbox and a label.
It's important to stop scripting attacks, and asp.net won't let you submit unsafe code, so on submit you javascript replace < with < and the same for >
Whe...
Hello there,
I have a scenario wherein one applet has to trigger the invocation of another applet. Please suggest me how I go about it.
Sanjeev Gopinath V
...
Hello just really a simple question (I hope).
I have a border used by a <ul> tag. I wonder If I can change the border size to make it bigger in width and height?
Here is my example.
<ul STYLE="border: 1px solid;float:left;padding:15px">
<--!(content)-->
</ul>
...
I heard a lot about the evil of tabe/font based html code, but I have no luck to see it. It seems nowadays, all the websites are using div/css to layout their page.
Could you provide an exmaple of evil table/font based html code. It better be a real-world example.
...
I use this javascript code to get the currently highlighted selection.
var selection = window.getSelection()
If the highlight is a section of text all within a <div>, how can I get the offset from the beginning of the <div> and the length of the highlight? (the length is not just the length of the text, it should be the actual length ...
i was trying to change the width of a particular optional value under attribute, something like this. But i am getting troubled as in IE the select box alongwith the option value gets expanded. Is there any simple way to make the only to expand and not the box.. mainly in ie ....
...
I have a simple drop down list and like to add shadow, it seem hard to find a working code, what do you suggest?
<select>
<option>apple</option>
</select>
...