Ok first question first. How do I paste my code so that it looks all clean and with numbers like the one you pasted? The code I am looking at (which I see through view -> source in internet explorer) is not very clean to begin with, it has all these extra spaces on the left. Might be that I need to clean it up manually? or is there some trick to getting it to look tidy? If someone could let me know that would be great, in the meantime please excuse the messiness.
Also, I am not sure if I should be using PHP to wrap my code, it did some trial and error and PHP came out in colour which I think made things a bit easier to read but this might not have been the best way to post my code. Feel free to correct me.
I tried looking for something which starts with '<form' but the only thing I could find doesn’t look like what you were after. Here it is:
I don’t think this is what we are looking for because it is the only part of the code with which begins with '<form' and given there are 3 form boxes on the page I should have been able to find others?PHP Code:<form name="aspnetForm" method="post" action="CreatePage.aspx?CancelSource=%2fnews%2fPages%2fdefault.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
The </form> I found at the very end of the source code, right before </body> and </html>. So maybe the whole page is one giant form?
Since I couldn’t find anything that said </form> in it, I tried to find something that had the titles of the boxes. I did a search for 'title' and 'URL name' and found two pieces of code which were close to each other which might be what we are looking for?
I think this is the code for the 'title' box.
PHP Code:<label for="ctl00_PlaceHolderMain_pageTitleSection_ctl00_titleTextBox" id="ctl00_PlaceHolderMain_pageTitleSection_ctl00_LiteralLabelText">Title:</label>
</td>
</tr>
<tr id="ctl00_PlaceHolderMain_pageTitleSection_ctl00_tablerow2">
<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
</tr>
<!-- End Right_Text -->
I think this is the code for the 'URL name' box
The reason I think this is the code for the 'URL name' box is because it has in the code both the labels that appear before and after the 'ULR name'. The label 'Pages/' appears before the box and the label '.aspx' appears after the box. This is exactly what it looks like on the 'CreatePage' page (see pics in first post).PHP Code:<span id="ctl00_PlaceHolderMain_pageTitleSection_ctl02_parentUrlLabel">Pages/</span>
<input name="ctl00$PlaceHolderMain$pageTitleSection$ctl02$urlNameTextBox" type="text" maxlength="123" size="35" id="ctl00_PlaceHolderMain_pageTitleSection_ctl02_urlNameTextBox" class="ms-input" dir="ltr" Title="" excludeFromSpellCheck="true" AlwaysEnableSilent="true" />
<Label>.aspx</Label>
</div>
<div>
Above both these pieces of code I found the following comment, perhaps this gives some clues?
Ta.PHP Code:<!-- RCA-only section - offer to update previously converted page -->
<!-- Location Picker -->
<!--PageTitleAndDesc-->




Reply With Quote
