473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

erasing a document

I work with DotNet c#
I made a frame, with 2 parts. Left are little images and in the right I can
see the selected one with a text (and what ever in future). It works, but
every time I select a new pict in left for to show as a big in the right
frame, it is appending it, what isn't of course my idea.
============================================
A little fragment of the position in the code I think something has to be
different
of an additional line, so it will first errase the document and then put the
new
image with the new text
============================================
scriptString += "function ShowPic(MyPic,MyText){";
scriptString += "top.frames[2].document.write('<h1>MyText</h1>');";
scriptString += "top.frames[2].document.write(\"<img
src=\'C:/Inetpub/wwwro.....
=============================================

For any idea, I thanks a lot
Greetings Patrick Marti
Nov 22 '05 #1
1 1031
document.write writes additional HTML code. Instead you could change the src
attribute of the img tag to display another image...

Patrice

--

"Patrick Marti" <Pa**********@discussions.microsoft.com> a écrit dans le
message de news:95**********************************@microsof t.com...
I work with DotNet c#
I made a frame, with 2 parts. Left are little images and in the right I can see the selected one with a text (and what ever in future). It works, but
every time I select a new pict in left for to show as a big in the right
frame, it is appending it, what isn't of course my idea.
============================================
A little fragment of the position in the code I think something has to be
different
of an additional line, so it will first errase the document and then put the new
image with the new text
============================================
scriptString += "function ShowPic(MyPic,MyText){";
scriptString += "top.frames[2].document.write('<h1>MyText</h1>');";
scriptString += "top.frames[2].document.write(\"<img
src=\'C:/Inetpub/wwwro.....
=============================================

For any idea, I thanks a lot
Greetings Patrick Marti

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Owen Brydon | last post by:
Hi, Is the following code legal? g++ 3.2 barfs on it, although it seems fine to me. #include <map> using std::map; int main()
5
by: Eric | last post by:
Is it possible? I'm trying to add to the current page -- but add at a specific point. Can add HTML tags from javascript midway through the page (at a place I specify) without erasing the existing...
1
by: Patrick Marti | last post by:
I work with DotNet c# I made a frame, with 2 parts. Left are little images and in the right I can see the selected one with a text (and what ever in future). It works, but every time I select a...
8
by: Generic Usenet Account | last post by:
To settle the dispute regarding what happens when an "erase" method is invoked on an STL container (i.e. whether the element is merely removed from the container or whether it also gets deleted in...
12
by: Tescobar | last post by:
Over one year ago somebody asked here: how to remove selected elements from list in a loop?. The answer was as follows: for( it = l.begin(); it != l.end; ) { if(...) it = l.erase(it); else...
2
by: Rachel | last post by:
Hi All: I am having a problem with visual studio automatically erasing my code. I thought it was a fluke at first, but it KEEPS HAPPENING. I have a string variable for a data connection that I...
5
by: Alan Howard | last post by:
We're getting "ERROR (0x8007000E) Not enough storage is available to complete this operation" errors on a fairly large, busy ASP/SQL Server web site. The error is being thrown on a line calling...
11
by: eeykay | last post by:
Hello, I am facing a starnge problem while erasing the last member in a vector. I am using VC++ .NET 2002 complier. I have vector of CComPtr<..> (irrelevant here), and then I iterate over the...
5
by: ma740988 | last post by:
For starters, Happy New Year to all!! I created a vector of pairs where pair first is a primitive and pair second is a vector of ints. So now: # include <iostream> # include <vector>
4
by: BibI | last post by:
Hi there, I just started programming with PERL and am trying to put together my first little data manipulation program. I am working on a MAC with OSX. I have a data file with the following...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.