When I do a repeat region CS3 freezes up
Why do my computer freezes when i try to do a "repeat region"
in CS3? Any Idea?
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
*http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
Similar Messages
-
Radio button and repeat region
Hi
I'm using radio buttons to display a values for a number of
records. The appropriate radio button is checked for a single
record but when I add a repeat region to display all the records,
only the last record in the list displays the appropriate radion
button as checked. I can display the appropriate value next to the
all the records but can't get the radio button to be checked.
Can anyone help
Thanks
RamsayHi Rashmi,
Login to the system where the transaction exists.
Go to T.Code SE80 - in the dropdown select Internet Service
And give WEBGUI - you will get a folder structure with different templates in it.
Right click on the WEBGUI Service and publish the whole service and check the same if it works.
Hope this helps.
Cheers-
Pramod -
Issue with layout / repeat region part 2..
Seems I haven't cracked this just yet - basically have a
details page that is split into three - with a candidate's details
at the top left, their work profile at the top right, with a long
CV text appearing below both.
All the fields are from the Candidates table, except the
profiles - so the profiles need to be a repeat region to list them
all.
I can't for the life of me get the layout to work as I'd like
- it's as tho' anything appearing afer the repeat region won't
display.
See here :
link
Below the CV header the CV field should appear - as in :
<tr>
<td colspan="2" valign="top"
class="labelcell">CV</td>
</tr>
<tr>
<td class="profilecell"><?php echo
$row_Candidates['CV']; ?></td>
</tr>
But when you view source, the <?php echo
$row_Candidates['CV']; ?> is AWOL, and appear as :
<tr>
<td colspan="2" valign="top"
class="labelcell">CV</td>
</tr>
<tr>
<td class="profilecell"></td>
</tr>
Anyone spot what's up here?
Just as I thought I had this page's layout done and dusted,
as usual, there had to be something not quite right!
IainIain -
I'm gonna have to take a look at this first thing in the
monring man, sorry.
I had a problem that got me all tied up.
If you want, email me at crash blat cdcdigital dotcom and
i'll answer in
email for a bit quicker response.
"Iain71" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
what does your code look like? what languages are you using?
>
> I'm using PHP/mySQL
>
> This is the current PHP at the top of the page :
>
> <?php
require_once('../Connections/connSearchTechUK.php'); ?>
> <?php
> $maxRows_Candidates = 10;
> $pageNum_Candidates = 0;
> if (isset($_GET['pageNum_Candidates'])) {
> $pageNum_Candidates = $_GET['pageNum_Candidates'];
> }
> $startRow_Candidates = $pageNum_Candidates *
$maxRows_Candidates;
>
> $colname_Candidates = "1";
> if (isset($_GET['CandidateID'])) {
> $colname_Candidates = (get_magic_quotes_gpc()) ?
$_GET['CandidateID'] :
> addslashes($_GET['CandidateID']);
> }
> mysql_select_db($database_connSearchTechUK,
$connSearchTechUK);
> $query_Candidates = sprintf("SELECT * FROM Profiles
INNER JOIN (Candidates
> INNER JOIN CandidateProfiles ON Candidates.CandidateID =
> CandidateProfiles.CandidateID) ON Profiles.ProfileID =
> CandidateProfiles.ProfileID WHERE Candidates.CandidateID
= %s",
> $colname_Candidates);
> $query_limit_Candidates = sprintf("%s LIMIT %d, %d",
$query_Candidates,
> $startRow_Candidates, $maxRows_Candidates);
> $Candidates = mysql_query($query_limit_Candidates,
$connSearchTechUK) or
> die(mysql_error());
> $row_Candidates = mysql_fetch_assoc($Candidates);
>
> if (isset($_GET['totalRows_Candidates'])) {
> $totalRows_Candidates = $_GET['totalRows_Candidates'];
> } else {
> $all_Candidates = mysql_query($query_Candidates);
> $totalRows_Candidates = mysql_num_rows($all_Candidates);
> }
> $totalPages_Candidates =
> ceil($totalRows_Candidates/$maxRows_Candidates)-1;
> ?>
>
> The data is being displayed using PHP echo lines, eg :
>
> <?php echo $row_Candidates['FirstName']; ?>
>
>
quote:
You said all fields were created from the Candidates table -
so that
> means
> the left and bottom sections, yet?
>
> The profiles section is fed by another table, yes?
What's your SQL look
> like for this? Are you searching by userID, by
userClass,. how are you
> determininig what profieles are assocaited with what
Person?
>
> Yup - basically a Candidates table, and a Profiles
table, looking up on
> CandidateID - the SQL looks like :
>
> SELECT *
> FROM Profiles INNER JOIN (Candidates INNER JOIN
CandidateProfiles ON
> Candidates.CandidateID = CandidateProfiles.CandidateID)
ON
> Profiles.ProfileID =
> CandidateProfiles.ProfileID
> WHERE Candidates.CandidateID = colname
>
>
quote:
What does your recordset produce when you test it?
>
> The recordset looks fine - in the code 'FirstName'
displays correctly near
> the
> top amongst the main details, but it should also appear
immediately to the
> left
> of "'s CV' - the code in the page is exactly the same
(as it should be, as
> the
> field is just dragged into place from the bindings
panel) as :
>
> <tr>
> <td colspan="2" valign="top"
class="labelcell"><?php echo
> $row_Candidates['FirstName']; ?>'s CV</td>
> </tr>
>
> It (and the 'CV' field) display fine when there's no
repeat region on the
> 'Profile' field, but as soon as I add the repeat region,
the go AWOL.
>
> Iain
> -
Repeat Region on Hortizonal Looper
My last post I got great help on getting my records to show horizontally , the only issue now that I've come across now is :
How do I get the regions to show 3 record per page , as of now it shows all records per page even with a repeat region set to 3 records set per page
Here is part of the code that I referred off of from other examples, which is currently working minus the repeat region. Also just like to point out that Most of the code is auto generated in dreamweaver so I just use the CF buttons button to generate it all then just edited the code accordingly.
Where would I set the # of products to show up
I also noticed this in a bit of code was in the example provided : <td>#arraysum(yourquery["lotsin"])#</td> not sure if that is relevant...
<td>Products</td>
</tr>
<cfoutput query="RsProdSurf" startRow="#StartRow_RsProdSurf#" maxRows="#MaxRows_RsProdSurf#">
<table width="200" border="1" align="center">
<tr>
<cfloop query="RsProdSurf">
<td>#RsProdSurf.Products#</td>
</cfloop>
</tr>
The nex/prev paging
<tr>
<td><cfif PageNum_RsProdSurf GT 1>
<a href="#CurrentPage#?PageNum_RsProdSurf=1#QueryString_RsProdSurf#">First</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf GT 1>
<a href="#CurrentPage#?PageNum_RsProdSurf=#Max(DecrementValue(PageNum_RsProdSurf),1)##QueryS tring_RsProdSurf#">Previous</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf LT TotalPages_RsProdSurf>
<a href="#CurrentPage#?PageNum_RsProdSurf=#Min(IncrementValue(PageNum_RsProdSurf),TotalPages _RsProdSurf)##QueryString_RsProdSurf#">Next</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf LT TotalPages_RsProdSurf>
<a href="#CurrentPage#?PageNum_RsProdSurf=#TotalPages_RsProdSurf##QueryString_RsProdSurf#">L ast</a>
</cfif></td>
</tr>
</cfoutput>
Once again thanks alot guys, I really do appreciate the help with this , It's been driving me nuts and I must figure it out!!
DHere is a screenshot of what I would like to try and do,
I would like 4/5 to NOT show up and have a next page for them
Here is what happens when I add the repeat region from dreamweaver, it seems to repeat it but not the right way
Really confused on this , Hoping somebody can solve this !!!
Thanks D -
How to hand-code a repeat region? (ASP/VBScript) WorldPay workaround.
Hi,
So far I've been using the standard Dreamweaver Repeat Region
behaviour to
add a database repeat region to my page. However, the code
this produces
doesn't work with WorldPay's callback script and I need to
know if it's
possible to hand code a repeat region. My repeat region data
includes
images etc so, as well as creating/displaying the repeat
region, I also need
to know how to incorporate some basic HTML.
Would appreciate any advice or links to a tutorial.
Thanks
nath.Hi Joe,
I have database content on my WorldPay callback page, which
is fed by a form
variable sent back from WorldPay. I can therefore call up
order details, in
my database, by ID.
Anyway, I have two recordsets displaying correctly on my
callback page;
Order Summary and Order Items. Because a customer may
purchase more than
one item, I need to show all records in the Order Items table
that match the
order ID. I therefore need a repeat region for the Order
Items recordset to
show all products, so I've inserted the standard DW repeat
region:
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
rsItems_numRows = rsItems_numRows + Repeat1__numRows
%>
...(above the head tag) and....
<%
While ((Repeat1__numRows <> 0) AND (NOT rsItems.EOF))
%>
...Recordset Data...
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsItems.MoveNext()
Wend
%>
...within my page where I want the repeat region to be.
If I DON'T include this code, both recordsets display data,
however the
Order Items recordset only shows 1 item (obviously, because
there is no
repeat region). When I add the repeat region code, as above,
WorldPay
fails.
WorldPay support can't actually tell you what's wrong, nor do
you receive an
error line or anything, however I know it's the repeat region
because both
recordsets display correctly WITHOUT the repeat region code.
Any way around this? I really need this to work because
otherwise I'm going
to have to force a re-direct and an auto-submission of a form
value
(nasty!), in order to be able to display the customers order
summary, and
order items, on one page.
Hope you can help. Thanks Joe.
Regards
Nath.
"Joe Makowiec" <[email protected]> wrote in
message
news:[email protected]...
> On 02 Jul 2007 in macromedia.dreamweaver.appdev,
tradmusic.com wrote:
>
>> So far I've been using the standard Dreamweaver
Repeat Region
>> behaviour to add a database repeat region to my
page. However, the
>> code this produces doesn't work with WorldPay's
callback script and
>> I need to know if it's possible to hand code a
repeat region. My
>> repeat region data includes images etc so, as well
as
>> creating/displaying the repeat region, I also need
to know how to
>> incorporate some basic HTML.
>
> Before you go re-inventing the wheel, what doesn't work?
>
> --
> Joe Makowiec
>
http://makowiec.net/
> Email:
http://makowiec.net/contact.php -
Dreamweaver CS3 freezes when "Display Styles" is on
Hi guys, I hope you can help me here. Recently I changed computers and am now experiencing this problem with all the webpages I work with. When I open a page, everything seems fine until I click in either the code view or design view, then it freezes with no error message. I then have to close the program through the task manager.
If I go to View > Style Rendering, then turn off Display Styles, then everything works great, but it just doesn't looke right. When I turn it back on it freezes again.
I think that this has something to do with the CSS files, but I don't know much about this. If it helps to see the pages, they are at www.iscatech.com.
Thank you in advance.Brett,
Hi guys, I hope you can help me here. Recently I changed computers and am now experiencing this problem with all the webpages I work with. When I open a page, everything seems fine until I click in either the code view or design view, then it freezes with no error message. I then have to close the program through the task manager.
If I go to View > Style Rendering, then turn off Display Styles, then everything works great, but it just doesn't looke right. When I turn it back on it freezes again.
I think that this has something to do with the CSS files, but I don't know much about this. If it helps to see the pages, they are at www.iscatech.com.
I looked at your web page. First of all there is some duplicated markup in the <head>. That's probably not your problem, but your page will load faster and more predictably if you clean that up.
I opened StyleSheet.css. It has a set of styles that are duplicated 39 (not a typo: thirty nine) times! Have you waited to see if DW eventually loads your page? It could just be taking it a long time to process that 147KB file. Try removing the duplicate styles.
I don't have CS3 anymore, but I can open it in CS4.
With that said, it's still possible that you may have a style (or combination of styles) that is causing CS3 to hang. Try using the binary process of elimination to isolate the CSS rules. In other words:
1. Comment out half of your existing styles
2. Restart DW
3. If it hangs, go to step #1
4. If it does not hang, continue
5. Un-comment half of the styles you commented out in the previous iteration
6. Go to Step #2
Repeat until you have it isolated to the minimum number of rules.
HTH,
Randy -
CS3 freezes when started on Mavericks
CS3 freezes when started on newly installed Mavericks (from 10.8). Last files are displayed and Regster window appears and then freezes up. Necessary to Force Quit to get out. I've "successfully" re-installed CS3 several times but the problem continues. What gives?
http://forums.adobe.com/thread/1342453?tstart=0
Mylenium -
Encore CS3 Freezes when Transcoding at Import
HP Pavillion
AMD Athelon 64 X2 Dual Core
Windows Vista Home Premium
4GB Ram
The project has 4 menus and about 24 timelines. When open the project eats about 2 GB of RAM.
All video files are DV NTSC 720x480 29.976 fps 4:3 quick time .mov
When transcoding a timeline in Encore CS3 (automatic settings) I constantly experience a "freeze" as Encore attempts to import the video. It transcodes fine, conforms the audio fine and then as it switches to "importing" it freezes. Sometimes I get an "Out of memory" error.
I tried upgrading my video driver to no avail.Sounds like a system-specific problem, as I've never seen it.
Have you tried exporting MPEG-2 from Premiere, and using that in Encore? -
Encore CS3 Freezes when Transcoding
I opened an older DVD menu that was made in Encore CS2. I made some changes to it cleaned up orphan timeline and dead links and added audio to menu. When I tried to export it to DVD it freezes when transcoding and locks my work station. I've done this several times on CS2 but this is the first time I have done this in CS3 and I get this problem. I tried transcoding seperately and my PC still freezes. The encore preview menue is great. Does the program only transcode AVI or does it do AVI and MP3. I really dont understand fully what it does when transcoding because either it didn't do this in CS2 or it did but it was flawless so I paid it know attention. Any assistance would be great.
Charles Mosley
[email protected]Problem Specification: Encore CS3 Freezes when Transcoding
1) I copy the txt of this guy coz my problem is more or less alike and he uses the proper technical words to explain the problem. But i'm glad you take time to read every mails.
2)I've got a Dual core 3.7GHz, 2G RAM Dual Channel, graphics card Nvidia6600TD 128VRAM & 250G HDD,
3)Problems...
- I edit a sequence duration 2Hr04min in Avid Express Pro HD 5.6.3 and Export it in Quicktime ref. I work wid Encore 2.0
- I use Procoder3 to creat both .m2p & .m2v authoring files. Here i got 2 files of aprox 4.5G each making it around 9G & 8G
- Using the .m2p files After creating the menue etc, i put it to burn but transcoding process freezes at 1/4 of the process. i try transcoding while file still in the project tab but it freezes at 1/4 again.
- Using the .m2v file the problem occur as with the .m2p files...
- I tried directly with the quicktime ref. Here it can't even trancode the Ref file!!! I tried transcoding it while still in the project but this option is DISABLED from the right-click menu.
- I created a new project an started anew for each of the 3 options but same problem.
What to do?
My RAM is perfectly ok, where lies the prob?
I've been trying to find out the prob since 10Days!! I should have submit this job monday last...
Plz Help...
Thx in advance Bill. -
CS3 freezing when I try to scan..
I just started trying to scan things through Photoshop but after the scanning completes, CS3 freezes every time and I am unable to even save the scanned file. Any ideas why this might be happening?
I can scan directly from the scanner application fine, but I was informed that scanning thru Photoshop produces clearer results so I'd prefer to do that if possible..
I tried increasing the allowed memory usage in my preferences but it didn't help.John Joslin wrote:
x_defect wrote:
I can scan directly from the scanner application fine, but I was informed that scanning thru Photoshop produces clearer results so I'd prefer to do that if possible.
That is absolute rubbish!
I tried increasing the allowed memory usage in my preferences but it didn't help.
Decreasing it might be better because PS may be starving the scanner software.
How much RAM do you have and what % is allocated to PS?
I lowered the RAM to the lowest "ideal range" it recommends, at 54%, and exited out of Epson after scanning/before trying to edit the image - the latter seems to have worked as it's not having problems now.
my coworker claimed she could see a noticeable difference in scanning straight from the Epson application and opening in Photoshop, vs. opening Photoshop first and scanning through there - she says the latter is less fuzzy so I've been told to do it this way but I have yet to test the theory. does it really make a difference in any way if you do it one way or the other?
could it just be something i can change in either the settings of Photoshop or the scanner that would make the difference? -
Contribute Acting strange - template parameters with repeating regions
Basically what I'm trying to achieve is that there is a
repeating region on a page, and each region is supposed to
alternate colors. To achieve this, the regions with the colors are
put into a div which has a background color applied to it. To do
this, I have created two expressions, one to check to see if it's
an even numbered region, and if so, to open the div, and another to
close the div. That looks like this:
quote:
<!-- TemplateBeginRepeat name="Article" -->
@@((_index & 1) ? shade : noshade )@@
stuff
@@((_index & 1) ? shadeend : noshade )@@
<!-- TemplateEndRepeat -->
At the top, I have three template parameters to go along with
these:
quote:
<!-- TemplateParam name="shade" type="text"
value="<div>" -->
<!-- TemplateParam name="shadeend" type="text"
value="</div>" -->
<!-- TemplateParam name="noshade" type="text" value=""
-->
Which look like this on the actual pages:
quote:
<!-- InstanceParam name="shade" type="text"
value="<div>" -->
<!-- InstanceParam name="shadeend" type="text"
value="</div>" -->
<!-- InstanceParam name="noshade" type="text" value=""
-->
The odd thing is that, when I add an editable region,
something weird occurs with the template parameters and they end up
looking like this:
quote:
<!-- InstanceParam name="shade" type="text"
value="<div>" --><!-- InstanceParam
name="shadeend" type="text" value="</div>"
-->->
<!-- InstanceParam name="noshade" type="text" value=""
-->
And that, of course, results in having a nice "->" showing
up at the top of my page. The repeating region appears to work. It
changes background colors just like it should, but I have no idea
why it's throwing in the "->" at the end.For grins, try changing this -
<div id="content1" style="display:none">
to this (IN THE TEMPLATE FILE) -
<div id="content@@(_repeat._index)@@''
style="display:none">
(that should be a " character after the last @ sign - I had
to use two '
characters to keep the code from getting munged in my
newsreader)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Murray *ACE*" <[email protected]> wrote
in message
news:g2m3cq$85h$[email protected]..
>I need to see the template markup around the repeating
region, please.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "ITLogic" <[email protected]> wrote in
message
> news:g2m25n$6se$[email protected]..
>> Sure. I'm using DW CS3. Here is a copy of the
repeating regions I'm
>> trying to
>> create. Notice each DIV has a sequential ID. I could
go hand edit this,
>> but I'm
>> trying to automate it as much as possible. I am
selling Contribute as a
>> means
>> for clients to edit their own content. Most don't
know how to spell HTML
>> much
>> less know how to use it.
>>
>> <div id="content0" style="display:''">
>>
>> <!-- ADD TICKER's CONTENT #1
HERE--------------------->
>>
>> <p>Hello</p>
>>
>> <!-- END CONTENT #1----------------->
>>
>> </div>
>>
>> <div id="content1" style="display:none">
>>
>> <!-- ADD TICKER's CONTENT #2
HERE--------------------->
>>
>> <p>World</p>
>>
>> <!-- END CONTENT #2----------------->
>>
>> </div>
>>
> -
Dreamweaver CS3 , ASP page. Access database. Successfully
created a recordset but am unable to enter a repeat region in table
to show records. Symptom - Dreamweaver closes when there is any
attempt to insert a new or edit and existing repeat region.I am using Dreamweaver CS3 on Vista Home Premium. Thanks for
your interest.
Mike Shields -
I have a strange question. I know this can be done in ASP
dynamically, but I'm wondering if Dreamweaver has a way of doing it
with the generated HTML.
I am designing some sites with Contribute users in mind. I
have a script that creates a ticker where each ticker fades in and
out as the next is displayed. The content of the ticker is read
from a regular HTML page, where each set of ticker content is in
it's own DIV tag. The advantage is that I can create a blank web
page based on my repeating region template. Then the the Contribute
user can use the cool little [+ - ^ v] thing to modify the data of
the ticker.
Here is the bad part. Each DIV tag has to have a unique
sequential ID. Like Div0, Div1, Div2... Is there any way I can make
the ID attribute count as new regions are created?For grins, try changing this -
<div id="content1" style="display:none">
to this (IN THE TEMPLATE FILE) -
<div id="content@@(_repeat._index)@@''
style="display:none">
(that should be a " character after the last @ sign - I had
to use two '
characters to keep the code from getting munged in my
newsreader)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Murray *ACE*" <[email protected]> wrote
in message
news:g2m3cq$85h$[email protected]..
>I need to see the template markup around the repeating
region, please.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "ITLogic" <[email protected]> wrote in
message
> news:g2m25n$6se$[email protected]..
>> Sure. I'm using DW CS3. Here is a copy of the
repeating regions I'm
>> trying to
>> create. Notice each DIV has a sequential ID. I could
go hand edit this,
>> but I'm
>> trying to automate it as much as possible. I am
selling Contribute as a
>> means
>> for clients to edit their own content. Most don't
know how to spell HTML
>> much
>> less know how to use it.
>>
>> <div id="content0" style="display:''">
>>
>> <!-- ADD TICKER's CONTENT #1
HERE--------------------->
>>
>> <p>Hello</p>
>>
>> <!-- END CONTENT #1----------------->
>>
>> </div>
>>
>> <div id="content1" style="display:none">
>>
>> <!-- ADD TICKER's CONTENT #2
HERE--------------------->
>>
>> <p>World</p>
>>
>> <!-- END CONTENT #2----------------->
>>
>> </div>
>>
> -
Dreamweaver CS3
ASP / VBScript
Hi,
I'm trying to create a nested repeat region to display a list
of categories
and, in brackets afterwards, a count of the number of
sub-categories
contained in it E.g.
Cats (12)
Dogs (43)
Fish (92)
Etc
I have managed to create my repeat region ok because as soon
as I drop a
field in from the recordset, it loops through them all and
displays them
correctly. However, when I try and simply write out the total
number of
records found, it doesn't display anything.
Recordset 1 is a straighforward select from the table.
Recordset 2 adds a
WHERE clause usinga variable based on the 1st recordset. Here
is the code
i'm using for the 2 recordsets:
Recordset 1 :
<%
Dim Level1
Dim Level1_cmd
Dim Level1_numRows
Set Level1_cmd = Server.CreateObject ("ADODB.Command")
Level1_cmd.ActiveConnection = MM_SemiDirectory_STRING
Level1_cmd.CommandText = "SELECT * FROM TBL_Level1 ORDER BY
[Description]
ASC"
Level1_cmd.Prepared = true
Set Level1 = Level1_cmd.Execute
Level1_numRows = 0
%>
Recordset 2 :
<%
Dim Level2__varLink
Level2__varLink = "1"
If (level1.fields.item("Level1_ID").value <> "") Then
Level2__varLink = level1.fields.item("Level1_ID").value
End If
%>
<%
Dim Level2
Dim Level2_cmd
Dim Level2_numRows
Set Level2_cmd = Server.CreateObject ("ADODB.Command")
Level2_cmd.ActiveConnection = MM_SemiDirectory_STRING
Level2_cmd.CommandText = "SELECT * FROM TBL_Level2 WHERE
Level1_ID = ? ORDER
BY Level1_ID ASC"
Level2_cmd.Prepared = true
Level2_cmd.Parameters.Append
Level2_cmd.CreateParameter("param1", 5, 1, -1,
Level2__varLink) ' adDouble
Set Level2 = Level2_cmd.Execute
Level2_numRows = 0
%>
Now for the repeated code :
<%
While ((Repeat1__numRows <> 0) AND (NOT Level1.EOF))
%>
<li><a
href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
(<%=(Level2_total)%>)
</li></a>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Level1.MoveNext()
Wend
%>
Can anyone tell me what I need to do to this code to make it
display the
number of sub-categories?
Thanks!!!Ok folks,
I found a way to get what I want. It's not pretty as I had to
make an extra
query in the database (that select of the count of all child
table results
for each parent category) and am pulling from that but it
works and that's
the main thing. I'm sure there is a more effective way of
doing it but
that's life!
I'm still interested in knowing the 'proper' way (if there is
such a thing)
so if you have the time to show me, i'm all ears!
Cheers!
"Mintyman" <[email protected]> wrote in message
news:[email protected]...
> Ok,
>
> So I closed the <li> code before the <a>
code. D'oh!
>
> Anyway, it returns a number now........the problem now
is that it returns
> the same value for each parent repeat!!!
>
> "Mintyman" <[email protected]> wrote in message
> news:[email protected]...
>> Dreamweaver CS3
>> ASP / VBScript
>>
>> Hi,
>>
>> I'm trying to create a nested repeat region to
display a list of
>> categories and, in brackets afterwards, a count of
the number of
>> sub-categories contained in it E.g.
>>
>> Cats (12)
>> Dogs (43)
>> Fish (92)
>> Etc
>>
>> I have managed to create my repeat region ok because
as soon as I drop a
>> field in from the recordset, it loops through them
all and displays them
>> correctly. However, when I try and simply write out
the total number of
>> records found, it doesn't display anything.
>>
>> Recordset 1 is a straighforward select from the
table. Recordset 2 adds a
>> WHERE clause usinga variable based on the 1st
recordset. Here is the
>> code i'm using for the 2 recordsets:
>>
>> Recordset 1 :
>>
>> <%
>> Dim Level1
>> Dim Level1_cmd
>> Dim Level1_numRows
>>
>> Set Level1_cmd = Server.CreateObject
("ADODB.Command")
>> Level1_cmd.ActiveConnection =
MM_SemiDirectory_STRING
>> Level1_cmd.CommandText = "SELECT * FROM TBL_Level1
ORDER BY [Description]
>> ASC"
>> Level1_cmd.Prepared = true
>>
>> Set Level1 = Level1_cmd.Execute
>> Level1_numRows = 0
>> %>
>>
>> Recordset 2 :
>>
>> <%
>> Dim Level2__varLink
>> Level2__varLink = "1"
>> If (level1.fields.item("Level1_ID").value <>
"") Then
>> Level2__varLink =
level1.fields.item("Level1_ID").value
>> End If
>> %>
>> <%
>> Dim Level2
>> Dim Level2_cmd
>> Dim Level2_numRows
>>
>> Set Level2_cmd = Server.CreateObject
("ADODB.Command")
>> Level2_cmd.ActiveConnection =
MM_SemiDirectory_STRING
>> Level2_cmd.CommandText = "SELECT * FROM TBL_Level2
WHERE Level1_ID = ?
>> ORDER BY Level1_ID ASC"
>> Level2_cmd.Prepared = true
>> Level2_cmd.Parameters.Append
Level2_cmd.CreateParameter("param1", 5,
>> 1, -1, Level2__varLink) ' adDouble
>>
>> Set Level2 = Level2_cmd.Execute
>> Level2_numRows = 0
>> %>
>>
>>
>> Now for the repeated code :
>>
>>
>> <%
>> While ((Repeat1__numRows <> 0) AND (NOT
Level1.EOF))
>> %>
>> <li><a
>>
href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
>> (<%=(Level2_total)%>)
>> </li></a>
>>
>>
>> <%
>> Repeat1__index=Repeat1__index+1
>> Repeat1__numRows=Repeat1__numRows-1
>> Level1.MoveNext()
>> Wend
>> %>
>>
>> Can anyone tell me what I need to do to this code to
make it display the
>> number of sub-categories?
>>
>> Thanks!!!
>>
>>
>>
>
> -
Trouble inserting repeating region as right sidebar in template
Hi,
my website has a main section and a left sidebar. I want to add a right sidebar of the same size and colour as the left one.
I've tried interesting an editable repeating region like the adobe help file Dreamweaver / Creating editable regions in templates says
http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7ab7a.h tml#WScbb6b82af5544594822510a94ae8d65-7ab6a
I can't click the mouse on the top right hand side of the main body, i.e. can't place the cursor there to be able to insert the repeating region where I want to insert it.
when i do insert the editable region, it places it at the bottom left of my template and I can't move it around to the top right side where I want it.
website is
http://www.addcoach4u.com
using dreamweaver CS3 on a Mac
Any ideas?Thanks Nancy,
cool site. I like the other designs on his site here too
http://matthewjamestaylor.com/blog/-website-layouts
any url for how to import my old design into that new template? ie how to put the top two nav bars that would extend across the page on top of the 3 column layout & add a footer at the bottom of the 3 column layout that goes on the bottom of the 3 column layout?
Maybe you are looking for
-
How do I Change the default mailbox on SBS 2011
I have created 3 other mailbox databases to help manage users mailboxes "Size". I now have a front office, Sales and Executive databases. All of these have different settings as far as send/receive limits and total size limits. When I create a new
-
Not able to create an Incident/Service ticket in CRM IC webclient
Hi, I am trying to create an incident/create a service ticket in CRM IC Webclient.All the fileds are grayed out. Can anyone tell me what could be the reason.
-
This problem is related also with chrome, opera and explorer. I reinstalled java but nothing changed
-
J1IEX Item Level data Duty values Tab Screen
Hallow Experts, In J1IEX - Capture / Post / Cancel Excise invoices transaction > Item Level data > duty values tab screen, System displays following information Excise duty Base Amount Basic material Amount on which excise tax amount is calculated.
-
Trying to use MPEG2 video in FC?
Someone shot something for me in what appears to be an MPEG 2 format. This is what the information that QT has on it says: MPEG2 Video, 1440 x 810 pixels, 30 FPS I have the QuickTime MPEG2 plugin that I purchased from Apple, but that doesn't seem to