Repeat region fail in IE7
Hi all
I NIF just my first website focused on the database and hit a BIG problem, just before there about to go live! I have a repeat region for each product, containing a form. There is a 'Détails' button (which is actually a submit button) and passes it to a type lightbox popup product data. I've been making sure all the works of this Safari, firefox, and IE8, but just tested on IE7 and only the first 'more info' button works. I have not the slightest idea why. I would be very grateful if someone could take a look at my code and tell me what goes wrong. Having a little panic now! Thank you guys
Here's the page http://goo.GL/5rlgc
Use a counter in the repeat region to add the name of the form and the id. In this way, they will be unique.
Tags: Dreamweaver
Similar Questions
-
Show hide within a repeat region
I am trying to apply a show - hide a div within a repeat region.
The problem is that only the first record of the repeat region seams to work properly, on all other theres no such think as hide. Why?
Here is the link:
http://www.Cantinho.org/admin/Cantinho/find_search_result.php
Hope someone can help me here.
Thank you
In the doors pop music: "The End."
We will make a summary of it:
OBJECTIVE OF THIS POST 'WHOLESALE ':
Make a show/hide button details within a repeat region, so when the user clicks on this button the details of this specific record inside the repeat region appear and disappear. (alternating).WHAT DID NOT WORK?
1)
PROBLEM:
The effect (in the menu effects of dreamweaver), despite the fact that we click on toggle option, it switches at all.SOLUTION:
It is a known bug in the Spry effects.js file. We need to update the .js file so the .js can switch.
Download here: http://www.cristic.ro/samples/SpryEffects.js
Thank you sailor.2)
PROBLEM:
The effect only occurs on the first record, nothing happens on the other!
SOLUTION:
Joris sugestion:
Apply a php counter.PROBLEM 3):
The initial state of the 'details' div is the SHOW, but we need them to HIDE. (to view the details, only when user whats to see).
SOLUTION HAS FAILED:
Apply a CSS like this:
Why? (don't know, maybe because we cannot apply a name dynamic div inside a CSS or maybe because I don't know how to do)
A SOLUTION THAT WORKS:
Suggested by Joris again:
Apply to the special div eatch that you want to hide (since we have a repeat region it will be only)
and apply to this div style = "" view: no ' property. "Thank you very much!!! JORIS! REALLY!
Thank you for your time, your patience and your lessons. :) -
List in a numbered repeating region
Hi guys, im having problems putting a numbered list in a repeating region (dynamic table). I need the list to indicate the position of the teams in the League, so I just need to list go 1,2,3,4,5, ect.
I use PHP and mainly in design mode.
Any help is very appreciated!
Taylor
ClubName GoalDiff Points <>
$number = 0;
{}
$number ++;
?>
We remind you that the code you are using (MySQL) has been deprecated. Since PHP version 7 it is no longer usable. Take a look to use MySQLi or PDO. Google topics for more information.
-
How to do vertical behaviors repeat region Server?
I've done many "server behavior, repeat region" vertical list without any installation view, now, I'm a new, horizontal shows that makes no sense. Anyone know why and how to solve this 'bad behavior '?
You have all the lines
in the code of the table - this is why everything is horizontal: -
Problems with repeated regions...
For the life of me and little matter how youtube videos and support I looked, I can't do the repeat regions to work in the way they are supposed to. I use Dreamweaver CC 2014.
For some reason, he repeats the lines by creating new columns to the wide to the right, which is obviously not what I want. What I am doing wrong? Any ideas?
This is the screenshot from Dreamweaver.
Thank you-
Matthew
Ah I see. In fact, the code is wrong. The tags line)
, ) must be inside the while loop so that a new row in the table is created for each iteration.In addition, in the future, it is preferable that send you the code and not a screenshot of the code. Makes it easier for us to see.
-
I have a number of records in a database - holiday destinations
Is it possible that I can use a repeat as region below: (I need to call in early January 2014, February 2014 etc. from the database maybe as 'SEPARATE' then repeat destinations under the title of months. Can this be achieved by using a repeat region?
January 2014
Bournemouth
Blackpool
Cotswolds
Edinburgh Tattoo
February 2014
Wexford
County Donegal
Isle of Wight
Lake District
Obviously, at the moment I have just a continuous list of destinations using a repeat region:
<? PHP while ($row = $getHolidayList-> fetch_assoc()) {? >}
<? PHP echo $row ['destination'];? >
<? PHP}? >
I need somehow stop the loop after what he said all destinations associated with January 2014 and begin once again to get out all the destinations associated with February 2014 etc by December 2014.
I could just create 12 sqli queries and their echo in the loops one after the other, but I also have page navigation buttons once 25 records have made this probably can be done.
Any suggestions?
<? PHP while ($row = $getHolidayList-> fetch_assoc()) {? >}
<? PHP echo $row ["month"];? > (how can be returned only on the first case, it appears in the database field 'months')
<? PHP echo $row ['destination'];? >
<? PHP}? >
Operating system
> I'll work on it and see if I can simplify it a bit.
You could try a different approach. Instead of using loops nested, I usually use a simple and just test if the column that you want to not repeat has changed since the last iteration. I'm not a php coder, but here is an attempt in php just to give you the idea.
<>
$temp_month = "";
While ($row = {$getHolidayList-> fetch_assoc())}
If $temp_month! = $row ["month"] {}
echo $row ["month"];
$temp_month = $row ["month"];
}
echo $row ['destination'];
}
?>
-
Hello world. Is it possible to apply several regions repeated to a Recordset? I use a recordset to search results in a database. I need to return the results in two different places on the same page. A place back the 'name' and 'occupation' and other give details and a photo of the individual. The results contains many records, so I need to apply a repeating region. However, I can only apply a region repeated to a Recordset. I am new to Dreamweaver and would appreciate any assistance. Thank you
Hello
You can read this article by David Powers?
How to reuse a PHP recordset in more of a repeat region? (http://kb2.adobe.com/community/publishing/528/cpsid_52877.html)
-
repeating region of php email function doesn't work do not
I have a form which should be sent by electronic mail and like products attached to it. However, I have a repeat region to list all products, but when I send the e-mail Island shows that the first item on the list.
below is the form set up
emailer
E-mail information new tenant
$to = ' [email protected] ';// . ',' . "$row_rsOrder ['email']";
$to = $row_rsOrder ['email'];
$subject = "order details";
$message ="
< html >
< head >
< title > Dear ".» $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "Please see the details of your order below < /title >
< / head >
< body >
" < img src =-" http://www.website.com/images/logoBLPP.jpg \" alt=\"" />
Your order of B < h2 >. $row_rsOrder ["OrderID"]. "< / h2 >
< table width = "800" border = "0" cellspacing = "0" cellpadding = "0" >
< tr > < td > < p > thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us < /p >
< br / >
< /a > < /p >
< tr > < td > < table > < /tr > < / table >
< table width = '980' border = "1" cellspacing = "0" cellpadding = "10" >
< tr valign = "top" >
< td bgcolor = "#E9E9E9" class = "header1" > Customer Name < table >
< class td 'text' = > "." $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "< table >
< td bgcolor = "#E9E9E9" class = "header1" > Order ID < table >
< td bgcolor = "#E9E9E9" class = "text" > "." $row_rsOrder ["OrderID"]. "< table >
< td bgcolor = "#E9E9E9" class = "header1" > status command < table >
< class td 'text' = > "." $row_rsOrder ["TransactResult"]. "< table >
< /tr >
< tr valign = "top" >
< td bgcolor = "#E9E9E9" class = "header1" > Email < table >
< class td 'text' = > "." $row_rsOrder ['email']. "< table >
< td bgcolor = "#E9E9E9" class = "header1" > < table >
< class td = "text" > < table >
< td bgcolor = "#E9E9E9" > < span class = "header1" > </span > < table > Order Date
< class td 'text' = > '.makeDateTime ($row_rsOrder ["OrderDate"], '%#d %B %Y', true). "< table >
< /tr >
< tr valign = "top" >
< td bgcolor = "#E9E9E9" class = "header1" > shipping address < table >
< class td = "text" > < p > "." $row_rsOrder ['address']. "< /p >
< p > "." $row_rsOrder ['city']. "< /p >
< p > "." $row_rsOrder ['postal code']. "< /p >
< p > "." $row_rsOrder ['country']. "< /p >
< p > < /p > < table >
< td > < table >
< td > < table >
"< td colspan ="2"align ="right"valign ="bottom"> < span class ="head"> ORDER TOTAL: DoFormatCurrency ($row_rsOrder ['Total'], 2, ','.', ' £', ""). "". "< br / >"
"</span > < span class ="text"> shipment: DoFormatCurrency (['shipping'], 2 $row_rsOrder, ','.', ' £', ""). "". "</span > < span class ="head"> < br / >"
</span > < table >
< /tr >
< tr valign = "top" >
< td bgcolor = "#E9E9E9" class = "header1" > Product ID < table >
< td bgcolor = "#E9E9E9" class = "header1" > < table > Product Description
< td bgcolor = "#E9E9E9" colspan = "2" class = "header1" > size < table >
< td bgcolor = "#E9E9E9" > < span class = "header1" > quantity </span > < table >
< td bgcolor = "#E9E9E9" align = "right" > < span class = "header1" > price </span > < table >
< /tr >
<? php do { ?>
< tr valign = "top" >
< class td 'text' = > "." $row_rsOrder ['ProductID']. "< table >
< class td 'text' = > "." $row_rsOrder ['product']. «, ». $row_rsOrder ["productGroupGUID"]. "< table >
< td colspan = "2" class = "text" > "." $row_rsOrder ["UnitSize"]. "< table >
< td > < span class = "text" > "." $row_rsOrder ['quantity']. "</span > < table >
< td align = 'right' class = "text" > ". DoFormatCurrency ($row_rsOrder ["UnitPrice'"], 2, ','.', ' £', ""). "." "< table >
< /tr >
<? php } while ($row_rsOrder = mysql_fetch_assoc($rsOrder)); ?>
< tr valign = "top" >
< class td = "text" > < table >
< class td = "text" > < table >
< td colspan = "2" class = "text" > < table >
< td > < table >
< td > < table >
< /tr >
< /table >
< / body >
< / html >
";
Content-type always defined when sending HTML email
$headers = "MIME-Version: 1.0 '. « \r\n » ;
$headers. = "content-type: text / html;" Charset = UTF-8 ". « \r\n » ;
$headers. = "from: company name < " [email protected] > '. "\r\n";
$send = mail ($ $subject, $message, $headers);
Yes, all THE information in the database was recovered and sent to the email. Only 3 products for test purposes.
I just tested it down to the do-while loop. After that html table code is absent.
You have to bare in mind, this is a crude test. The updated database in place the query is not as complex as yours is, so maybe it's why his work, but certainly break the 'message' is the way to go. I can try to get another table products tomorrow if I have time to test.
Database to html code and column names are the same as you have. the recordeset is "rsOrders" instead of "Mina" that you used.
<>
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via PHP_VERSION< 6)="">
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
}
$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);
Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
@mysql_select_db ($database_conDonations, $conDonations);
$query_rsOrders = "SELECT * FROM orders";
$rsOrders = mysql_query ($query_rsOrders, $conDonations) or die (mysql_error ());
$row_rsOrders = mysql_fetch_assoc ($rsOrders);
$totalRows_rsOrders = mysql_num_rows ($rsOrders);
emailer
E-mail information new tenant
$to = ' [email protected]'; / /. ',' . "$row_rsOrder ['email'];
$to = $row_rsOrder ['email'];
$subject = "order details";
$message ="
Dear ".» $row_rsOrders ["FirstName"]. "see your order below details ' http://www.website.com/images/logoBLPP.jpg-' alt =------"------" / >
Your order of B. $row_rsOrders ["OrderID"]. »
Thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us
Name of the customer «. $row_rsOrders ["FirstName"]. » Command ID «. $row_rsOrders ["OrderID"]. » Status of orders «. $row_rsOrders ["TransactResult"]. » E-mail «. $row_rsOrders ['email']. » Order date «. $row_rsOrders ["OrderDate"]. » Shipping address «. $row_rsOrders ['address']. »
«. $row_rsOrders ['city']. »
«. $row_rsOrders ['postal code']. »
«. $row_rsOrders ['country']. »
ORDER TOTAL: "." $row_rsOrders ['total']. » Shipping: "." $row_rsOrders ["expedition"]. »
";Product ID Product description Size Quantity Price ?>
"?> «. $row_rsOrders ['product']. » «. $row_rsOrders ["UnitSize"]. » «. $row_rsOrders ['quantity']. » «. $row_rsOrders ['UnitPrice']. » ";
?>