Edit or add to the HTML
How do you edit the HTML in an iWeb page? I want to add information from the Weather Channel and need to add the script, but can't edit the HTML. I would appreciate any help that's provided.
If you are publishing to .mac, then you can open the html files on your iDisk and edit them using something like http://http://www.barebones.com/products/textwrangler/
Once you have done the required editing you save the file and the html is changed.
If publishing to a folder, then you edit the text in the folder when the site is on your hard disk.
Note: Any changes you make will be overwritten when you republish the site.
Will
Similar Messages
-
How do I add to the HTML page containing an fla?
Hi,
My site has Flash Video that plays back in a Flash movie
file.
I want to put html text on the html page containing the Flash
movie so that if a viewer doesn't have Flash, they can see a plain
text link that sends them to a page with a Windows Media Player.
When I attempt to add text to the html page containing the
Flash movie, the text doesn't appear and my page changes background
color.
Where in the source code should I be adding my html text?
Please indicate the insertion point below.
Source code below or visit
http://www.ocatillopictures.com/OcatilloFrames/Animation.html
Thanks
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Janos-FlashPlayer</title>
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
</head>
<body bgcolor="#100068">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="center"><font face="Wingdings 3" size="16"
color="#80dbf9" letterSpacing="0.000000" kerning="1"><a
href="
http://www.ocatillopictures.com/FinalPages/Animation.html#Janos
Video Anchor" target =
"_self"><b>t</b></a><font
face="Arial"><a href="
http://www.ocatillopictures.com/FinalPages/Animation.html#Janos
Video Anchor" target = "_self"><b>Return to
Menu</b></a></font></font></p>
<p align="center"><font face="Arial" size="16"
color="#80dbf9" letterSpacing="0.000000" kerning="1"><a
href="
http://www.ocatillopictures.com/movie-pg/Janos-movie.html"
target = "_self"><b>View Windows
Media</b></a><font face="Wingdings 3"><a
href="
http://www.ocatillopictures.com/movie-pg/Janos-movie.html"
target = "_self"><b>u</b></a><font
face="Arial"><b>
</b></font></font></font></p>
-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '700',
'height', '500',
'src', 'Janos-FlashPlayer',
'quality', 'high',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Janos-FlashPlayer',
'bgcolor', '#100068',
'name', 'Janos-FlashPlayer',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Janos-FlashPlayer',
'salign', ''
); //end AC code
</script>
<noscript>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="700" height="500" id="Janos-FlashPlayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Janos-FlashPlayer.swf"
/><param name="quality" value="high" /><param
name="bgcolor" value="#100068" /> <embed
src="Janos-FlashPlayer.swf" quality="high" bgcolor="#100068"
width="700" height="500" name="Janos-FlashPlayer" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
</noscript>
</body>
</html>You have the text commented out. Remove the "<!--" before
your text and the "-->" after the text and it will show. -
Can I edit the HTML that Muse exports in an HTML editor like Dreamweaver or Coda?
If I create a site in Muse, can I export the HTML and pass it along to a web developer to add additional hand-coding?
Choose Object > Insert HTML. In the window that appears, select the default placeholder text and Press Delete (Mac) or Backspace (Windows) to remove it. Choose Edit > Paste to paste the HTML code into the HTML Code field. Click OK to close the HTML Code window.
For detailed Instruction you can follow the article http://www.adobekb.com/building_your_first_website_pt04.html#inserting
Hope this helps -
How to retrieve data from the HTML form in the JEditorPane?
I could quite easily use JEditorPane to render and display a simple HTML file.
My HTML looks like this:
<html>
<head>
<title> simple form</title>
</head>
<body bgcolor="cccccc">
<center><h1>SURVEY THING</h1>
</center>
<form id="survey">
<p>1.Type something in.</p>
<textarea cols=25 rows=8>
</textarea>
<BR>
<p>2.Pick ONLY one.</p>
<input type="radio" name="thing" value="0" Checked> NO choice <BR>
<input type="radio" name="thing" value="1"> First choice <BR>
<input type="radio" name="thing" value="2"> Second choice
<BR>
<p>3.Pick all you like.</p>
<input type="checkbox" name="stuff" value="A"> A <BR>
<input type="checkbox" name="stuff" value="B"> B <BR>
<input type="checkbox" name="stuff" value="C"> C <BR>
<input type="submit" value="give data">
<input type="reset" value="do clensing">
</form>
</body>
</html>
It gets diplayed fine and I can type in text, select radio buttons (they behave mutualy-exclusive,
as they should) and check checkboxes.
The problem I have is with retrieving the values which were entered into the form.
If I, after editing, try to write the html to the file using HTMLWriter,
it records the changes I made into the textarea, however all the radio and checkbox selections are lost.
Maybe the problem is that when I enter the values I do not use any methods like
insertBeforeStart and so on, but I believe I shouldn't need to use them to populate a form.
Especially I never change the structure of the HTML.
Also, when I try to traverse the Element tree and see the input elements attributes,
I can never see a change in the entered values. However it is probably b/c I am traversing through
the model and the changes are in the view (just a guess.)
Anyway, if anybody could direct me onto the right path: how to retrieve the values typed in the form,
or if it is possible at all in the JEditorPane, I would greatly appreciate.
thanks
maciej
PS. I have seen the answer to a similar question posted some time last year. However, I am trying
to find a soultion which allows forms/surveys to be built by people who have no java and only basic
html knwledge. And Axualize way is probably a little bit too "high-tech."Maybe helpful for u.
import java.awt.*;
import java.awt.event.*;
import java.awt.Container;
import java.util.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
public class TestHtmlInput extends JFrame {
JEditorPane pane=new JEditorPane();
public TestHtmlInput() {
super();
pane.setEditorKit(new HTMLEditorKit());
pane.setText("<HTML><BODY><FORM>" +
"<p>1.Input your name.</p>" +
"<INPUT TYPE='text' name='firstName'>" +
"<p>2.Input your information.</p>" +
"<TEXTAREA rows='20' name='StationDescriptions' cols='100'>" +
"<p>3.Pick ONLY one.</p>" +
"<input type='radio' name='thing' value='0' Checked> NO choice <BR>" +
"<input type='radio' name='thing' value='1'> First choice <BR>" +
"<input type='radio' name='thing' value='2'> Second Choice <BR>" +
"<p>4.Pick all you like.</p>" +
"<input type='checkbox' name='stuff' value='A'> A <BR>" +
"<input type='checkbox' name='stuff' value='B'> B <BR>" +
"<input type='checkbox' name='stuff' value='C'> C <BR>" +
"<p>5.Choose your nationality.</p>" +
"<select name='natio'>" +
"<option>12</option>" +
"<option selected>13</option>" +
"</select>" +
"</FORM></BODY></HTML>");
this.getContentPane().add(new JScrollPane(pane));
JButton b=new JButton("print firstName text");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Number of Components in JTextPane: " + pane.getComponentCount());
for (int i = 0; i < pane.getComponentCount(); i++) {
//NOTE FOR BELOW: know its a Container since all Components inside a JTextPane are instances of the inner class
//ComponentView$Invalidator which is a subclass of the Container Class (ComponentView$Invalidator extends Container)
Container c = (Container)pane.getComponent(i);
//the component of this containers will be the Swing equivalents of the HTML Form fields (JButton, JTextField, etc.)
//Get the # of components inside the ComponentView$Invalidator (the above container)
Component swingComponentOfHTMLInputType = c.getComponent(0);
//each ComponentView$Invalidator will only have one component at array base 0
//DISPLAY OF WHAT JAVA CLASS TYPE THE COMPONENT IS
System.out.println(i + ": " + swingComponentOfHTMLInputType.getClass().getName());
//this will show of what type the Component is (JTextField, JRadioButton, etc.)
if (swingComponentOfHTMLInputType instanceof JTextField) {
JTextField tf = (JTextField)swingComponentOfHTMLInputType;
//downcast and we have the reference to the component now!! :)
System.out.println(" Text: " + tf.getText());
tf.setText("JTextField found!");
} else if (swingComponentOfHTMLInputType instanceof JButton) {
} else if (swingComponentOfHTMLInputType instanceof JComboBox) {
JComboBox combo = (JComboBox)swingComponentOfHTMLInputType;
System.out.println(" Selected index: " + combo.getSelectedIndex());
} else if (swingComponentOfHTMLInputType instanceof JRadioButton) {
JRadioButton radio = (JRadioButton)swingComponentOfHTMLInputType;
System.out.println(" Selected: " + new Boolean(radio.isSelected()).toString());
} else if (swingComponentOfHTMLInputType instanceof JCheckBox) {
JCheckBox check = (JCheckBox)swingComponentOfHTMLInputType;
check.setSelected(true);
System.out.println(" Selected: " + new Boolean(check.isSelected()).toString());
} else if (swingComponentOfHTMLInputType instanceof JScrollPane) {
JScrollPane pane = (JScrollPane)swingComponentOfHTMLInputType;
for (int j=0; j<pane.getComponentCount(); j++) {
//JTextArea area = (JTextArea)swingComponentOfHTMLInputType.getComponent(0);
Container c2 = (Container)pane.getComponent(j);
for (int k=0; k<c2.getComponentCount(); k++) {
Component c3 = (Component)c2.getComponent(k);
if (c3 instanceof JTextArea) {
JTextArea area = (JTextArea)c3;
System.out.println(" " + area.getClass().getName());
System.out.println(" Text: " + area.getText());
area.setText("JTextArea found!");
} else {
this.getContentPane().add(b,BorderLayout.SOUTH);
public static void main(String args[]) {
TestHtmlInput app = new TestHtmlInput();
app.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
app.setSize( 400, 900 );
app.setVisible( true );
} -
Preview: Edit or Add to PDF's Table of Contents
Hey everyone,
I have a PDF that was generated by an online service (in other words, I didn't create it) and I'd like to edit or add to the Table of Contents, which currently is blank (other than the filename). (The file is otherwise able to be annotated, and has existing active links in it pointing to URLs.)
How can I do add to the TOC? For instance, if there are 12 chapters in here, I want to create 12 lines in the TOC, so I can just click and jump to them. I see there is a workaround with Bookmarks but I'd prefer manipulating the TOC.
And if the only way is to start with a Word doc, let me know because I can start in that format.
Thanks,
J
P.S. Working with Preview 5.0.2. (504) and Snow Leopard 10.6.4.You can use PDFOutliner for editing the TOC (costs $5 on the Mac App Store). PDFOutliner can also *automatically* build a TOC based on the PDF's heading styles, to get you started quickly with a long PDF.
Note - I am the developer of PDFOutliner.
Regards,
Jose -
I have a list which has a underlying infopath form for insert and edit a record.
The list has various views spread across different pages .
Now depending on different pages "New Item", a value for the form will have a corresponding value.
If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
How do i achieve that?
Thanks...Hi,
According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
which requires custom code can be like this:
After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
using jQuery.
About how to
get URL parameters of current page using jQuery:
http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
About
adding jQuery into InfoPath form:
http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Can I download an iWeb site so that I can change the html? I need to add a better blog and also some SEO.
Where is your site hosted? If it's hosted on MobileMe you can use SEO to edit the site online. No need to get it locally.
If the site is hosted with a 3rd party fpt client then publish your site to a folder on your hard drive, use SEO on it there and then upload the site to your server with a 3rd party ftp client.
What do you mean "add a better blog"?
OT -
How do you edit the HTML export template?
Fireworks HTML and images export does not render correctly when viewing in IE9 due to the default browser padding values. I'm a little disappointed the Fireworks dev team didn't see this coming and add some code to prevent this rendering issue. Anyway... I've come up with a work around to edit the html pages by adding my own style sheet which includes the yahoo CSS reset styles to take care of this problem and it works great. The only problem is, adding it to every page of a multiple page export is tedious. So, I'd like to directly edit the HTML template fireworks uses to generate the html in the head of each page it exports so it includes a reference to my own external style sheet. I just need to know where/if I can make this change. Any help would be greatly appreciated!
Thanks,
GregI've never tried it, but the HTML Code folder inside Fireworks' application Configuration folder contains a number of items related to HTML Export. (Incidentally, I'd never mess with this folder without first saving a backup, and even then it's at your own risk.)
There's no simple HTML template file here, but there are files like "DreamweaverLibrary.htt", which is a "hypertext template" file that looks a lot like JavaScript to me. So if you're comfortable modifying JavaScript, then you could take a crack at it. I'm not sure, but it looks like this library file might govern what gets written into the head of an exported HTML document. If not, you could try a different one.
Another, less invasive approach might be to do some kind of Find and Replace on the exported HTML documents—using Dreamweaver or a text editor. -
Add a favicon to iweb via the HTML snippet...how?
Is there a way to add a favicon to iweb via the HTML snippet?
My search on google has found many ways to do it by editing the published files, but this is more work than it is worth (since it needs to be done on every new publish).
Any ideas?
thanks
bobbob:
There's been no way to add a favicon via HTML snippet that I've found. Using TextWrangler which can do multi-file find and replace doing it the old fashion way, post publication editing, is a little easier as described in Old Toad's Tutorial #22 - Adding a Favicon to Your Web Site.
Send a feature request to the iWeb developers via http://www.apple.com/feedback/iweb.html
OT -
You we edit the html code of a Iweb site
Hi,
I want to add some information to the html coding of my website. I built it with Iweb 09. How can I access and edit it? Tks!Then consideriWeb SEO Tool.
Click to view full size
Click to view full size
Click to view full size
OT -
Editing Wiki adds extra breaks every time I save the article
I’ve been working on the article below and I’ve noticed that every time I save the article it adds extra breaks.
I’m not an HTML guy so if it looks horrible in the HTML view let me know.
If I’m doing something wrong, let me know. Tips, tricks, oh hey by the ways… All ears!
Also, and links to information about adding screen shots would be helpful for another article I’m working on.
http://social.technet.microsoft.com/wiki/contents/articles/20964.active-directory-ultimate-reading-collection.aspx
Any help would be appreciated! Thanks in advance!
If you found this post helpful, please “Vote as Helpful”. If it answered your question, remember to “Mark as Answer”.
Postings are provided “AS IS” with no warranties, and confers no rights.I've also got this problem, and I'd reckon it started around the time I installed IE10 on Win7. It continues still, with IE11 on Win7.
The strange thing is that there are a couple of wiki articles I curate, and they have tables in them, when I add an additional row to the table and populate it, the oversupply of <br>'s doesn't seem to happen.
e.g.:
http://social.technet.microsoft.com/wiki/contents/articles/9539.list-of-public-microsoft-support-knowledge-base-kb-articles-for-sccm-2012-system-center-configuration-manager.aspx?PageIndex=3
But this GP article is driving me nuts with all the superfluous <br>'s, to the point where I thought I'd convert the whole body into a table (in case tables are somehow protected from this <br> bloat), but sadly the <br> disease seems to
be following me here too :(
[above the first table]
http://social.technet.microsoft.com/wiki/contents/articles/4976.selected-content-relating-to-group-policy-administrative-templates-adm-and-admx.aspx
editing in HTML mode clearly shows the excessive <br>'s
was my crime to initially create the article from a Word doc?
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
html code is all I see when editing the school website. As the web master I can write code but prefer the edit friendly version as it is quicker. IE does not show the html code.
Could you help me by specifying how you converted LDAP schema files to LDIF files? I am trying to add a custom schema file on an Open Directory Master running Leopard and have been unable to get Open Directory to pick up the schema file.
-
I have installed iOS7 on my iPhone4. I am able to add/edit contacts by clicking the "contact" icon. But when I am trying to do the same after clicking the "phone" icon, it is not displaying the keypad. I believe it is a bug in iOS7.
Please confirm.
iPhone 4, iOS 7Hello jayanand,
You may need to force close all open apps, then restart the phone. If necessary, you may need to reset the phone after that.
iOS: Force an app to close
http://support.apple.com/kb/HT5137
iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
http://support.apple.com/kb/HT1430
Cheers,
Allen -
On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
<input type="file" name="file" accept="image/*" id="file" />
mimeTypes.rdf does not seem to allow this.''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
<pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
For details, see
* [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input] -
I need to add the values stored in the session object into the html textbox
Dear Sir,
i have been trying to create an edit employee details page
What i have done till now is as follow:
1. Got employee id from HTML page.
2. Compared it with the id stored in the database.
3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
4. Dispatched the session values to another servlet EditEmpDetails2.java
what i need to do now
5. Now i need to set the session values in the text field of the html form
6. I also need to be able to edit those vales and store the edited values in the database.
Please help me as i have tried doing it for 1 week without any clues
i have tried to create a html page which is something like this:
<html>
<head>
<title>Edit Employee Details Page</title>
<body BGCOLOR="red" text="black">
<h1 ><font color="black">Edit Employee Details Page</font></h1>
<form action = "EditEmpDetails" method="Get">
<table width="50% align="center"
<tr><td>Employee ID: </td>
<td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
<tr><td><center><input type="submit" value="submit"></center></td></tr>
<tr><td><center><input type="reset" value="reset" ></center></td></tr>
</table>
</form>
</body>
</html>
design of my servlet EditEmpDetails.java
public void EditEmpDetails1 extends HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
PrintWriter out = response.getWriter();
response.setContentType("text/html");
HttpSession session = request.getSession();
String employeeid;
String X = request.getParameter("employeeid");
System.out.println("Employee iD:" + X);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
String query = "Select * from users where employeeid=?";
PreparedStatement stat = con.prepareStatement(query);
System.out.println(stat);
stat.setString(1,X);
ResultSet rs = stat.executeQuery();
while(rs.next())
String Z = rs.getString(password);
if(Z.equals(X))
String A = rs.getString(1);
session.setAttribute("employeeid", A);
String B = rs.getString(2);
session.setAttribute("firstname", B);
String C = rs.getString(3);
session.setAttribute("lastname", C);
String D = rs.getString(4);
session.setAttribute("gender", D);
String E = rs.getString(5);
session.setAttribute("dateofbirth", E);
String F = rs.getString(6);
session.setAttribute("address", F);
String G = rs.getString(7);
session.setAttribute("postalcode", G);
String H = rs.getString(8);
session.setAttribute("phone", H);
String I = rs.getString(9);
session.setAttribute("mobile", I);
String J = rs.getString(10);
String url = "/EditEmpDetao;s.java";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
dispatcher.forward(request,response);
catch (Exception e)
system.out.println(e)
I do not know how to put the values stored in the session object into the html text box3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
In your JSP page use JSP expression tags to put the session attributes.
it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
I think i m clear enough.
if you need more clarifications. just try it and then post your problem.
Diablo
Maybe you are looking for
-
HT5622 i can not log in app store (iphone5)
i can not log in app store
-
How do I resolve this issue and get a refund for the magazine I have been incorrectly charged for?
-
My G5 iMac wont turn on...
About two days ago i went to turn my G5 iMac on and the light came on for two seconds and then it shut back down again. most of the time when i push the power button nothing even happens. i have had it for several years now and have all of my music a
-
Hi, I have a date field stored in a text file, can anyone tell me what the control file entry for that field should be (if we assume a format of DDMMYYYY). thanks in advance, ED.
-
Broker cleanup on startup/shutdown
Looking for some details on observed behaviour with the 3.6 Broker. We've been seeing some odd stuff in our production broker this week -- old transactions (using imqcmd list txn) that we can't get rid of, "phantom" messages in queues which just hang