|
nickmaroulis wrote:
unfortunately I have to accommodate the various versions of IE.
Bane of the web dev world...
nickmaroulis wrote:
how do I check scripts?
Slowly. Open them in your IDE - use debugging tools where possible. test on as many different machines as possible to give you a better idea of what's causing the problem.
But it also might help to tell us:
which add-ons are causing the problem?
What are you coding in?
|
|
|
|
|
i have done a crystal report in aweb application, when i run it gives me a message
"the report you requested requires further information"
i typed logon information and pressed the logon button, but dont go to the report
note, the database field is not active,
please, i need help to solve the problem.
|
|
|
|
|
I have response text of table string from php (including the tr and td )and I want to display it in my table with id= "displayCart" as follow:
<table border=1 id="displayCart" ></table>
document.getElementById("displayCart").innerHTML = xhr.responseText;
It work in Firefox, but not in my IE7.
|
|
|
|
|
The last time I had the pleasure :cough: :cough: of working with HTML and TABLE elements dynamically in IE, you had to use DOM methods that created the row and cell elements individually and add them to the table and row respectively. So no, AFAIK, you have never been able to set the innerHTML of a TABLE element in IE.
|
|
|
|
|
Though I have tried before(but I am using javascript) createElement, appendChild and so on, but still doesnt work.
I heard IE need tbody and tr must be in that tbody element, but still after creating that still dont work.
That makes me not so confident to do it in php. Anyway I should give this a try, but any key/hint that I should know?
I havent thought of including thead and tfoot element as I read from some website, any simple example for this that works?
|
|
|
|
|
LordLothar wrote: I am using javascript
Yes as is this example from your first post.
LordLothar wrote: document.getElementById("displayCart").innerHTML = xhr.responseText;
But now you say this:
LordLothar wrote: That makes me not so confident to do it in php
So your post has now become confusing.
LordLothar wrote: createElement, appendChild and so on, but still doesnt work.
I heard IE need tbody and tr must be in that tbody element, but still after creating that still dont work.
Well it does work because we use here in our application so you must have done it wrong.
|
|
|
|
|
My bad, what I mean is, first I tried it in JavaScript (never mind about this).
Since I use session in php thus I will loop my array and put it in DOM. I should try this before asking, below are example I have to create DOM in php. I will change the element name as html table later.
What concern me this will also return string or xml format? to xhr.responseText, in the end I have to display this using innerHTML to tag id I have in my html page. Will that still work in IE?
ECHO (toXml($myCart));
function toXml($aCart)
{
$doc = new DomDocument('1.0');
$cart = $doc->createElement('cart');
$cart = $doc->appendChild($cart);
foreach ($aCart as $Item => $ItemName)
{
$book = $doc->createElement('book');
$book = $cart->appendChild($book);
$title = $doc->createElement('title');
$title = $book->appendChild($title);
$value = $doc->createTextNode($Item);
$value = $title->appendChild($value);
$quantity = $doc->createElement('quantity');
$quantity = $book->appendChild($quantity);
$value2 = $doc->createTextNode($ItemName);
$value2 = $quantity->appendChild($value2);
}
$strXml = $doc->saveXML();
return $strXml;
}
This is my previous post of php code that return string with element tr and td (which doesnt work in IE of course):
function toHTML($aModel,$aMaker,$aPrice,$aQty)
{
$tableString="<tr>
<th>Manufacturer</th>
<th>Model</th>
<th>Price</th>
<th>Qty</th>
<th>Total Price</th>
</tr>";
foreach ($aModel as $item)
{
$tableString .="<tr id='".$aModel[$item]."'>
<td>".$aMaker[$item]."</td>
<td>".$aModel[$item]."</td>
<td>".$aPrice[$item]."</td>
<td>".$aQty[$item]."</td>
<td>".$aPrice[$item]*$aQty[$item]."</td>
<td><a href='#' onclick='RemoveItem(\"Remove\",\"".$aModel[$item]."\")';>Remove Item</a></td>
</tr>";
}
return $tableString;
}
|
|
|
|
|
LordLothar wrote: What concern me this will also return string or xml format? to xhr.responseText, in the end I have to display this using innerHTML to tag id I have in my html page. Will that still work in IE?
Sounds like you might be starting to catch on.
led mike wrote: AFAIK, you have never been able to set the innerHTML of a TABLE element in IE.
|
|
|
|
|
The best I can think that works in both IE and Firefox is:
<table border=1><tr><td id = "td1"></td></tr></table>
Then
javascript:void(document.getElementById('td1').innerHTML='Test2')
Hope that helps.
- Reelix
-= Reelix =-
|
|
|
|
|
Code which is used to Disable the right click Button on web-page.
---------------------------------------
<script type="text/javascript">
<!--//
function press()
{
if (event.button==2)
{
alert('Sorry, Right click is not allowed')
return false;
}
}
document.onmousedown=press
//-->
</script>
---------------------------------------
Just add this in HTML code after Head Tag.
Give me comment and suggestions other than this.
Regards
Dinesh Verma
|
|
|
|
|
|
Just out of interest... why would you want to disable the right click?
Any web programmer knows that code rendered in a browser can not be hidden!
All the functionality in right click is available in the menu bar.
|
|
|
|
|
I hope your reply pointed towards Denish's post.
Either you love IT or leave IT...
|
|
|
|
|
|
Hello All
I’m developing a website on tourism. It is public website where no authentication is required. I have around 200 topics which we need to cover. Instead of having 200 different html pages we were planning to have one single page which will display html content after fetching from database. We are planning to store all html for 200 topic in database table. We tested this approach with couple of topics and it is working fine.
Here I have a concern where I need your opinion:
Will above approach affect the google search engine to rate our different pages? Does this effect SEO activities…
Please suggest…Because for each topic meta tags will also be in database tables.
If your reply is yes please suggest some other alternative as we don’t want to maintain 200 different pages……..
Thanks,
Amit
|
|
|
|
|
For a better result, generate a single url for each content.
eg. www.yoururl.com/topic1, www.yoururl.com/topic2 ...
In this case, you will have one unique page that receives parameters and "generate" the page.
How? Using URL Rewrite. With one page, you can "make" many others.
And... In addition to meta tags, set a unique title too.
|
|
|
|
|
Hi
i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#. how it will be done.
|
|
|
|
|
It would probably be best to set up a shared folder with access between the 2 machines and go from there using standard file operations
|
|
|
|
|
Bibhash Mishra wrote: i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#
I suppose you can run asp.net application on both machines.
1. Write a web service for the machine that will receive file.
2. On the sending machine, pick the file, convert it into byte stream. Open a TCP connection(Socket) with the receiving machine, transfer the file and close the socket.
3. The web service will receive the byte stream and will write file to disk.
|
|
|
|
|
If the machines are in the same network, all you have to do is grant write permission to ASPNET user on the destination folder.
|
|
|
|
|
I am trying to migrate an WinForms application to WebForms application using WebGUI. When i try to compile the WinForms code in the WebGUI project by deriving(or replacing System.Windows.Forms) with Gizmox.WebGUI.Forms, my code is not compiling beacuse of various appributes on the WinForms
Below are some of the error? How do I resolve these errors?
DataReader.frmDataReader' does not contain a definition for 'HelpButton' and no extension method 'HelpButton' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(327,17): error CS0029: Cannot implicitly convert type 'System.Drawing.Icon' to 'Gizmox.WebGUI.Common.Resources.ResourceHandle'
D:\source\Programs\Data Reader_ASP\POS Data ReaderASP\frmDataReader.Designer.cs(328,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'KeyPreview' and no extension method 'KeyPreview' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(340,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'MouseMove' and no extension method 'MouseMove' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
Well you have to solve the errors by replacing the System.Windows.Forms-elements with the matching Web-control. For example the HelpButton does not exists for Gizmox.WebGUI.Forms. So you should add a control 'HelpButton' to your form...
|
|
|
|
|
In the WebGui project, the form controls is derving Gizmox.WebGUI.Forms.Form . So can i add conrols in "systems.windows.forms" namespace to the Webgui project
|
|
|
|
|
Well this dependes on the Gizmox framework. I would suggest to take a look into the documentation of gizmox.
|
|
|
|
|
Had a quick look into the Migrate-video from gizmox. Seems like you have to rename all your System.Windows.Forms-references to Gizmox.WebGUI.Forms-references. This means they have implemented all Windows-Forms-controls to Gizmox-controls. So you cannot add System.Windows.Forms controls to the project.
Are you missing a special control, or why do you want to add controls from Windows.Forms?
|
|
|
|