I'm searching for a free component or library that could convert HTML to PostScript ( .ps file format ). I'm using .Net framework 1.1. Any one have experience with situation like this ?
Is there a way that a javascript function can read the javascript source code in an html page, so that the function can do some checking job on the javascript source code?
I am generating a dynamic HTML table string and displaying inside a div. I am assigning ID and runat server in that string. eg.
string s="<table id='tblAll' runat='server'></table>".
This string is generated on some different page, and its passed as XmlhttpResponseText
I want to apply sorting on this table, It would be great if any one can help me out.
Thanks
Currently Selenium IDE not supporting for Export Test suite as C# from HTML. Its time consuming by converting the test cases one by one manually. any body has any idea to handle this?
We have link to some page (with html code, on the same domain), that page have one img, which attributes title and alt are equal.
Script must open link (no showing on the page), grab the src attribute of img which title=alt, and throw the value into some variable.
Is it possible to do?
Thanks.
hello i have problem with this code..I want to keep the values of the textboxes when the pageload and didnt write again the values. I have two drop down list. the First one is the country when the country selected then the page load and appear the city to select but afte the pageload the values on textbox is empty. I want to keep the values of textbox when the page load.
This is the code
<head>
<script type="text/javascript">
function Load_id() {
var Count = document.getElementById("Count").value;
var Count_txt = "?Count="
location = Count_txt + Count
}
</script>
<meta charset="UTF-8">
</head>
<body>
<div class="main">
<div class="headers">
<table>
<tr><td rowspan="2"><img alt="unipi" src="/Images/logo.jpeg" height="75" width="52"></td>
<td>University</td></tr>
<tr><td>Data</td></tr>
</table>
</div>
<div class="form">
<h3>Personal</h3><br/><br/><br/>
<form id="Page1" name="Page1" action="Form1Sub.php" method="Post">
<table style="width:520px;text-align:left;">
<tr><td><label>Number:</label></td>
<td><input type="text" required="required" id="AM" name="AM" value=""/></td>
</tr>
<tr><td><label>Name:</label></td>
<td><input type="text" required="required" name="Name"/></td>
</tr>
<?php
$host="localhost";
$username="";
$password="";
$dbName="Database";
$connection = mysql_connect($host, $username, $password) or die("Couldn't Connect to the Server");
$db = mysql_select_db($dbName, $connection) or die("cannot select DataBase");
$Count = $_GET['Count'];
echo "<tr><td><label>Country</label></td>\n";
$country = mysql_query("select DISTINCT Country FROM lut_country_city ");
echo " <td><select id=\"Count\" name=\"cat\" onChange=\"Load_id(this)\">\n";
echo " `<option>Select Country</option>\n";
while($nt=mysql_fetch_array($country)){
$selected = ($nt["Country"] == $Count)? "SELECTED":"";
echo"<option value=\"".$nt['Country']."\"". $selected." >".$nt['Country']."</option>";
}
echo " </select></td></tr>\n";
echo"<tr><td><label>City:</label></td>\n";
$q2 = mysql_query("Select id,City,Country FROM lut_country_city WHERE Country = '$Count'");
echo"<td><select name=\"SelectCity\">\n";
while($row = mysql_fetch_array($q2)) {
echo"<option value=\"".$row['id']."\">".$row['City']."</option>";
}
echo " </select></td></tr>\n";
?>
</table>
<p>
<button type="submit" id="Next">Next</button>
</form>
<form id="form1" action="index.php">
<button id="Back" type="submit">Back</button>
</form>
</p>
</div>
</div>
</body>
</html>
Does ASP.NET's ScriptManager have any sort of "helper" for binding to HTML control events? This would be similar to jQuery:
$('#foo').bind('click', function() {
alert('User clicked on "foo."');
});
The question is simple - we have a sample / test Solr app running that only responds with XML right now. Is there an easy way to change that output to HTML? Running Tomcat as the app server.
I am trying to call my function named isUrgencyTypeValid from my javascript code but it is not working. Please check what is the problem in my code.
My javascript function is not being called.
HTML Code
<td colspan="2" align="center"><input id="btnSubmit" type="submit" value="submit" runat="server"/></td></tr>
jQuery Call function
$("#btnSubmit").bind("click",function(){
isUrgencyTypeValid();
});
javascript implemented function
function isUrgencyTypeValid()
{
alert("asd");
var i=0;
for(i=0;i<$("radio[name='urgencyType']").length;i++)
{
if($("radio[name='urgencyType']")[i].checked)
{
alert($("radio[name='urgencyType']")[i].value);
return true;
}
return false;
}
More description about my form is here
<form runat="server" name="myPage">
<table style="width: 100%;" cellpadding="5" cellspacing="5">
<caption>
Computer Support / Service Request
</caption>
<tr><td>First Name</td>
<td><input id="txtFirstName" type="text" value="First Name" runat="server"/><span class="error"></span></td></tr>
<tr>
<td>Last Name</td>
<td><input id="txtLastName" type="text" value="Last Name" runat="server"/><span class="error"></span></td></tr>
<tr>
<td>Email Address</td>
<td><input id="txtEmailAddress" type="text" value="Email Address" runat="server"/><span class="error"></span></td></tr>
<tr>
<td>Phone No</td>
<td><input id="txtPhoneNo" type="text" value="Phone No" runat="server" /><span class="error"></span></td></tr>
<tr>
<td>Do you have text messaging</td>
<td>
<span>Yes</span><input id="rdoYes" value="Yes" type="radio" runat="server"/>
<span>No</span><input id="rdoNo" value="No" type="radio" runat="server"/><span class="error"></span>
</td></tr>
<tr>
<td>Description of request*: </td>
<td><textarea id="txtDescription" cols="50" rows="10" runat="server"></textarea><span class="error"></span><span id="lengthCount"></span></td></tr>
<tr>
<td>Urgency of this support request:</td>
<td>
<input id="rdoAnyTime" name="urgencyType" value="Anytime" type="radio" runat="server"/><span>Anytime</span><br />
<input id="rdoCplDays" name="urgencyType" value="In the next couple of days" type="radio" runat="server"/><span>In the next couple of days</span><br />
<input id="rdoToday" name="urgencyType" value="Today" type="radio" runat="server"/><span>Today</span><br />
<input id="rdoUrgent" name="urgencyType" value="This is extremely urgent...I cannot wait!" type="radio" runat="server"/><span>This is extremely urgent...I cannot wait!</span><br />
<input id="rdoTalkSometime" name="urgencyType" value="Please contact me and we'll talk about it" type="radio" runat="server"/><span>Please contact me and we'll talk about it</span><br /><span class="error"></span>
</td></tr>
<tr>
<td colspan="2" align="center">Captcha To Be implemented.</td></tr>
<tr>
<td></td>
<td><input id="chkRequestCopy" type="checkbox" runat="server"/>Please send me a copy of this service request</td></tr>
<tr>
<td colspan="2" align="center"><input id="btnSubmit" type="submit" value="submit" runat="server"/></td></tr>
</table>
</form>
I am looking for a way to implement "View as HTML" (as seen in e.g. GMail) for Microsoft Office and Adobe PDF documents stored in an intranet. Can anyone recommend approaches for this?
The intranet consists of multiple .NET sites, so I would prefer a .NET library (one that doesn't launch MS Word on the server) for this capability, but any kind of arrangement is welcome.
I'm not sure if it's just me, but whenever I open .txt files in internet explorer, it always parses the HTML, so forms, buttons, fields all show up. It does this on multiple computers, and I'm fairly sure it hasn't always done this. I know FireFox doesn't, FireFox loads it as a text file. Does anyone else have this problem? If so, have you solved it? If so again, how?
Hi all, of all three choices (AIR+AJAX, +Flash, and +FLEX) I went on the AJAX route. But it seems that it can't show Flash embedded in HTML (using the traditional OBJECT tag).
Is it by design? or my fault?
Hi,
I have a xml feed which needs to be converted to HTML. How can it be done? If somebody has any references on how to do it pls let me know. i need to show the feed in a wordpress site.
Thanks
Prady
I was asked by a client to create a bookflip (Page Turn) effect that did not require Flash. The imBookFlip plugin can load a book in an iframe or directly on the page. The book's pages can be set to turn when manually clicked only, begin auto flip (turn automatically) as soon as the html page loads, or begin auto flip when first page (front cover is clicked).
I would like to dump all css key/value pairs for an html tag.
In particular, I would like to learn the css properties for <audio> tag, so I can try to customize the look.
document.getElementById('myaudio').style returns a CSSStyleDeclaration object but length returns 0 and I cannot figure out to iterate over the key/value pairs.
Thank you
Is there a way to test the html from the response of:
response = self.client.get('/user/login/')
I want a detailed check like input ids, and other attributes. Also, how about sessions that has been set? is it possible to check their values in the test?
I have
before my closing body tag here i have the usual
$(function() {
function test(){
alert("test");
}
});
in my html i have input tags
I get an error of that test is undefined. I am trying to make IE7 call function onchange I had a whole solution working but since IE7 does not like .change() i am going to put onchange attributes within the inputs but now i have this issue.
Any idea how I can solve this?
Why same website looks different in different browser.
Differently styled HTML elements in all browser's default css is the only factor for the different looks in different browser of website?
Is there any other factors related to cross browser compatibility?
Hello,
I'm trying to display some string (html formatted) in a Richtext Ctrl. In my code I tried to use it this way (self.txtmain is the RichTextCtrl):
out = StringIO()
htmlhandler = rt.RichTextHTMLHandler()
buffer = self.txtmain.GetBuffer()
buffer.AddHandler(htmlhandler)
out.write(string)
out.seek(0)
htmlhandler.LoadStream(buffer, out)
self.txtmain.Refresh()
No errors are issued, but the RichTextCtrl windows is not updated.
What am I missing here?
What are correctly content-types for this documents ?
I need to write a simple crawler, that only fetches this kind of files.
Nowadays http://somedomain.com/index.html can serve for example an JPEG file due to mod_rewrite, so I need to check the content-type from the response header and compare it with a list of allowed content-types.
From where I can get such list ?
I understand that calling the home page index.html is a convention. Is that right ?
Does this name has any special meaning (maybe for search engines) ?